OpenCV (Python 版本) cvShowImage 报错
opencv
OpenCV: 开源计算机视觉库
项目地址:https://gitcode.com/gh_mirrors/opencv31/opencv
免费下载资源
·
cv2.error: OpenCV(4.9.0) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:1272:
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'
原因是 opencv-python-headless
在作怪。
It's because of ''opencv-python-headless'. Uninstall it!
执行以下命令:
pip uninstall opencv-python-headless
卸载掉 opencv-python-headless
就可以正常显示图像。
GitHub 加速计划 / opencv31 / opencv
77.38 K
55.71 K
下载
OpenCV: 开源计算机视觉库
最近提交(Master分支:2 个月前 )
48668119
dnn: use dispatching for Winograd optimizations 2 天前
3dace76c
flann: remove unused hdf5 header 2 天前
更多推荐
已为社区贡献6条内容
所有评论(0)