Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cv2.error: OpenCV(4.5.0-dev) /home/pi/opencv/modules/highgui/src/window.cpp:651: error: (-2:Unspecified error)

Hallo, I have fallowed the steps provided in this tutorial https://www.tomshardware.com/how-to/raspberry-pi-facial-recognition and have tried scouring to get a fix for my issue bellow. I have the latest version of everything I can find to try and install and have re ran the Cmake twice now and I continue to run into this cv2.error can anyone help me figure out why I am unable to run the face recognition?

Traceback (most recent call last): File "headshots_picam.py", line 18, in <module> cv2.imshow("Press Space to take a photo", image) cv2.error: OpenCV(4.5.0-dev) /home/pi/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'

(also let me know if there are changes I need to make to the quire not sure how the openCV does all their questions)

cv2.error: OpenCV(4.5.0-dev) /home/pi/opencv/modules/highgui/src/window.cpp:651: error: (-2:Unspecified error)

Hallo, I have fallowed the steps provided in this tutorial https://www.tomshardware.com/how-to/raspberry-pi-facial-recognition and have tried scouring to get a fix for my issue bellow. I have the latest version of everything I can find to try and install and have re ran the Cmake twice now and I continue to run into this cv2.error can anyone help me figure out why I am unable to run the face recognition?recognition?(note I can import cv2 in python3 on the terminal and check things like version of CV but it doesn't want to work with python)

Traceback (most recent call last): File "headshots_picam.py", line 18, in <module> cv2.imshow("Press Space to take a photo", image) cv2.error: OpenCV(4.5.0-dev) /home/pi/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'

(also let me know if there are changes I need to make to the quire not sure how the openCV does all their questions)