Reputation: 191
I pip installed opencv-python
in python3.6 on my mac.
import cv2
works fine, except when I tried to do cv2.imshow()
, it says
OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support
Can someone give me a specific walk through about how to do rebuild the library please?
Upvotes: 0
Views: 836
Reputation: 191874
Did you read the PyPi page?
(emphasis added)
IMPORTANT NOTE
MacOS and Linux wheels have currently some limitations:
- video related functionality is not supported (not compiled with FFmpeg)
- for example
cv2.imshow()
will not work (not compiled with GTK+ 2.x or Carbon support)
So, you are welcome to compile it yourself, I guess, but even those builds are listed as failing.
You could use homebrew
to install opencv
, though not sure how that's compiled
Upvotes: 1