cv2.imshow('im',frame)
cv2.error: OpenCV(3.4.2) /tmp/build/80754af9/opencv-suite_1535558553474/work/modules/highgui/src/window.cpp:632: 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 'cvShowImage'
(opencv版本为3.4.2)
conda remove opencv
conda install -c menpo opencv
pip install --upgrade pip
pip install opencv-contrib-python (关键)
解决
或 尝试降低opencv版本 用pip install 安装3.4.1
本文详细介绍了在使用OpenCV库时遇到的显示错误(cvShowImage)解决方案,包括更新或重新安装OpenCV库的方法,适用于Ubuntu或Debian系统,确保正确配置以避免未实现功能的错误。
4388

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



