naokiyokoyama / bd_spot_wrapper

Scripts for experimentation with Boston Dynamics Spot Robot
9 stars 2 forks source link

What is the opencv-python version used in your system #2

Open KavitShah1998 opened 1 year ago

KavitShah1998 commented 1 year ago

Hi Naoki, I see that in your requirements.txt file there is a dep on opencv-python since a direct installation of this package without providing a version number might install a different version, I wanted to know which version are you using in your project?

Asking this as I am having an opencv error which might be related to use of a deprecated function (per newer opencv versions)

cv2.error: OpenCV(4.7.0) /tmp/pip-install-6j_ne3yb/opencv-python_e9010a351ea04a879b4560ffcedb033c/opencv/modules/highgui/src/window.cpp:1260: 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 'cvDestroyWindow'
naokiyokoyama commented 1 year ago

Hi Kavit, sorry I missed this. This error seems to be due to the fact that you are trying to use either cv2.destroyAllWindows() or cv2.imshow() on a machine or ssh session with no designated display.