在执行从cv2.imshow()出现如下错误
cv2.error: OpenCV(4.1.1) C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:627: error: (-2:Unspecified
error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa 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'
解决方法:
pip install opencv-contrib-python