EdjeElectronics / TensorFlow-Object-Detection-on-the-Raspberry-Pi

A tutorial showing how to set up TensorFlow's Object Detection API on the Raspberry Pi
Apache License 2.0
1.14k stars 364 forks source link

issue with cv2.imshow() #88

Open adsenger opened 4 years ago

adsenger commented 4 years ago

I'm getting this error running the script:

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.

woutervanranst commented 4 years ago

same issue here

woutervanranst commented 4 years ago

I apt get installed the 2 packages, did an u install of opencv and reinstall opencv an it worked from there