opencv imshow error

转自:https://www.cnblogs.com/wangxiaocvpr/p/5385961.html

OpenCV Error:

OpenCV Error: 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 cvShowImage, file /io/opencv/modules/highgui/src/window.cpp, line 583 Traceback (most recent call last): File “./show_tracker_vot.py”, line 30, in objTrackerVis.trackAll(0, 1) File “/home/wangxiao/Downloads/goTURN-tensorflow/PY-GOTURN-master/src/tracker_manager.py”, line 55, in trackAll cv2.imshow(‘input’, sMatImage) cv2.error: /io/opencv/modules/highgui/src/window.cpp:583: error: (-2) 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

==>> do the following opeartions:
pip uninstall opencv-python
sudo apt-get install libgtk-3-dev

猜你喜欢

转载自blog.csdn.net/confuciust/article/details/80581063
今日推荐