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'
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.
Hi Naoki, I see that in your
requirements.txt
file there is a dep onopencv-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)