上一次Linux系统崩了重新装了一遍系统,再用的时候发现Opencv报如下错误
OpenCV Error: Unspecified error (The function is notimplemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. Ifyou are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-runcmake or configure script) in cvNamedWindow, file/home/aborn/software/OpenCV-3.0.0/modules/highgui/src/window.cpp, line …
当时遇到这个错误很苦恼,上网查了很多资料,有的说要安装libgtk2.0-dev和pkg-config,安装之后并没有解决问题,还有说要安装g77,尝试以后发现链接网站404,换了很多种方法也不行,后来利用pip命令,解决问题,如下
(我这里的Opencv是利用conda指令安装)
1.pip install --upgrade pip
2.pip install opencv-contrib-python
不知道用其他方式安装的Opencv能否如此解决。
因为测试案例都是我们自己实拍的,所以就不放测试结果啦,如果解决不了欢迎私戳一起讨论!