1问题:python中opencv运行nameWindow报错
cv2.error: OpenCV(4.9.0) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:1255: 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 ‘cvNamedWindow’
解决办法,安装opencv-contrib-python和opencv-contrib-python-headless
python中opencv的cv2.namedWindow报错The function is not implemented. Rebuild the library with Windows, GT
最新推荐文章于 2024-08-14 15:40:53 发布