Python error for 4.1.0 - cv.imshow(winname, mat) not implemented
System information (version) OpenCV => 4.1.0 Operating System / Platform => Raspberry Pi 4 / Python 3.7.3 Compiler => cpp Detailed description I am trying to run a python3.7 code with OpenCV 4.1.0 on Raspberry 4 I have OpenCV compiled and installed on RPi4 and tested the version number with cv2.version command.
I get an error when I try to run the Capture Video from Camera sample from https://docs.opencv.org/4.1.0/dd/d43/...
The error message is as follows : cv2.error: OpenCV(4.1.0) /home/pi/opencv/modules/highgui/src/window.cpp:627: 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'
There seem to be other similar errors for functions not implemented. Is this something I could fix on my end or is it truly not implemented in 4.1.0
in cv.getBuildInformation() what is it written in your configuration in GUI ?
I use window :
)
I see : GUI: GTK+: NO VTK support : NO
Do I need to rebuild to enable GUI support ? If yes, what CMAKE option do I need to use ?
In Raspberry pi 4:
sudo pip3 install libgtk2.0-dev and pkg-config -y
,Then do cmakeThank you. I had installed libgtk2.0-dev as well. Is there a script for raspberry pi 4 to install 4.1.0 that works ?
I haven't install yet. I am waiting monitor 28" 4K arriving at my door today. I'm moving to 4.1.1. I can't post script here, because of limited to 700 characters. Email me supra56 with google.
Oh ok. Would be able to put your 4.1.1 script on github.com when your done? thank you in advance.
I'm moving to OpenCV 4.1.2.