解决opencv报错: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
碰到opencv报错,记录一下解决办法。
用conda安装的opencv,发现程序运行到cv2.imshow()就报如上错误,在网上找到下面这种解决办法,原文链接如下:
链接: https://stackoverflow.com/questions/14655969/opencv-error-the-function-is-not-implemented.
具体办法就是先卸载用conda安装的opencv,然后用pip安装opencv。
conda remove opencv
pip install opencv-contrib-python