Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
opencv help
#1
Hello, I compiled opencv successfully, so I thought, but when I run a script, I got this opencv error:
OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, , then re-run cmake or configure script) in cvShowImage, file /home/pi/opencv-3.3.0/modules/highgui/src/window.cpp, line 605
Traceback (most recent call last):
  File "/home/pi/Desktop/Pi_Projects/NewCV/cv.py", line 30, in <module>
    cv2.imshow('img',img)
cv2.error: /home/pi/opencv-3.3.0/modules/highgui/src/window.cpp:605: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon 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
Mine is the Raspbian Stretch, so it is Debian.
Here is what I don't understand
install libgtk2.0-dev and pkg-config, how do I 
, I already installed libgtk2.0-dev, but how do I configure script in function cvShowImage?
My makefile looks like this:
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D WITH_GTK=ON \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.3.0/modules
-D BUILD_EXAMPLES=ON ..
What am I doing wrong?
Thanks.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020