M
M
Maks Hate2017-06-02 18:03:23
Python
Maks Hate, 2017-06-02 18:03:23

Opencv not working?

Good afternoon! I'm on Mac os Sierra. 1554e4a4fcd54f789827dcd0fa1b54cf.pngI've been tormented all day and can't find an answer why it doesn't work. The strangest thing is that it is imported, but it does not include anything on its own .imread( ), .imshow( ), etc. The strangest thing is when I installed it, it worked flawlessly.
error code

cv2.namedWindow("main", cv2.WINDOW_AUTOSIZE)
cv2.error: /Users/travis/build/skvark/opencv-python/opencv/modules/highgui/src/window.cpp:565: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvNamedWindow

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xdgadd, 2017-06-02
@xdgadd

If you get something like "no implementation found for function_name", most likely you installed opencv via pip. Try to build from the source according to this guide.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question