python-opencv 错误合集

1. cv.imshow 错误

本文平台 windows

报错信息:

	cv2.imshow('imshow', img)
) 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'

解决方法:

pip install opencv-contrib-python

2. 中文路径读取报错

https://www.zhihu.com/question/67157462/answer/746834340

3. 中文路径保存乱码

https://blog.csdn.net/ctwy291314/article/details/80897143

posted @ 2022-10-20 10:40  Zenith_Hugh  阅读(283)  评论(0)    收藏  举报