解决
Traceback (most recent call last): File "video_demo.py", line 64, in <module> cv2.namedWindow("result", cv2.WINDOW_AUTOSIZE) cv2.error: OpenCV(3.4.2) /tmp/build/80754af9/opencv-suite_1535558553474/work/modules/highgui/src/window.cpp:615: error: (-2: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 function 'cvNamedWindow'
conda remove opencv conda install -c menpo opencvpip install --upgrade pippip install opencv-contrib-python
本文详细介绍了如何解决在使用OpenCV库时遇到的The function is not implemented错误,该错误通常发生在尝试调用cvNamedWindow函数时。文章提供了具体的错误信息,包括错误代码和出错位置,并给出了详细的解决步骤,涉及使用conda环境管理工具移除和重新安装OpenCV,以及使用pip升级和安装opencv-contrib-python库。

2283

被折叠的 条评论
为什么被折叠?



