Python error for 4.1.0 - cv.imshow(winname, mat) not implemented

asked 2019-09-04 08:09:08 -0600

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

edit retag flag offensive close merge delete

Comments

in cv.getBuildInformation() what is it written in your configuration in GUI ?

I use window :

 GUI:
    Win32 UI:                    YES
    OpenGL support:              YES (opengl32 glu32

)

LBerger gravatar imageLBerger ( 2019-09-04 08:15:42 -0600 )edit

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 ?

Sunilvb gravatar imageSunilvb ( 2019-09-04 09:35:56 -0600 )edit

In Raspberry pi 4: sudo pip3 install libgtk2.0-dev and pkg-config -y ,Then do cmake

supra56 gravatar imagesupra56 ( 2019-09-04 21:24:45 -0600 )edit

Thank you. I had installed libgtk2.0-dev as well. Is there a script for raspberry pi 4 to install 4.1.0 that works ?

Sunilvb gravatar imageSunilvb ( 2019-09-05 08:11:12 -0600 )edit

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.

supra56 gravatar imagesupra56 ( 2019-09-05 09:09:07 -0600 )edit

Oh ok. Would be able to put your 4.1.1 script on github.com when your done? thank you in advance.

Sunilvb gravatar imageSunilvb ( 2019-09-05 10:27:47 -0600 )edit

I'm moving to OpenCV 4.1.2.

supra56 gravatar imagesupra56 ( 2019-09-12 07:57:15 -0600 )edit