我想在Mac上用OpenCV和Python显示图像:
cv2.imshow('image',img)
但是,我得到了:
/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /Users/aaa/PycharmProjects/untitled/aaa.py
OpenCV Error: Unspecified error (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 cvShowImage, file /Users/travis/build/skvark/opencv-python/opencv/modules/highgui/src/window.cpp, line 583
Traceback (most recent call last):
File "/Users/AAAA/PycharmProjects/untitled/aaa.py", line 32, in <module>
cv2.imshow('image',img)
cv2.error: /Users/travis/build/skvark/opencv-python/opencv/modules/highgui/src/window.cpp:583: 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 cvShowImage
但是,我可以在mac上做什么? apt-get当然不起作用......