cv2.error: OpenCV(4.11.0) /io/opencv/modules/highgui/src/window.cpp:1301: error: (-2:Unspecified err
·
把yolov8转化为tensorrt的时候,发现一些问题
cv2.error: OpenCV(4.11.0) /io/opencv/modules/highgui/src/window.cpp:1301: 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'
看了别的解决方法
1.pip uninstall opencv-python opencv-python-headless命令删除这两个包
2.pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple命令重新安装opencv-python
然后可以了
更多推荐


所有评论(0)