Traceback (most recent call last):
File "Object_detection_picamera.py", line 161, in <module>
cv2.imshow('Object detector', frame)
cv2.error: OpenCV(4.4.0) /tmp/pip-install-fx8ry_hd/opencv-python/opencv/modules/highgui/src/window.cpp:651: 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'
I installed opencv using pip install opencv-python after installing all the dependencies, not sure what was missing.
I'm getting this error running the script:
I installed opencv using
pip install opencv-python
after installing all the dependencies, not sure what was missing.