cv2.imshow() Error: Function Not Implemented - install libgtk2.0-dev and pkg-config OpenCV 4.7.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello!
I'm working on python opencv in IMX8Mplus, present I could able to install opencv python in yocto image but when I try to run any python program which contains imshow, throws the below error
cv2.imshow('Video Stream', frame)
cv2.error: OpenCV(4.7.0) /io/opencv/modules/highgui/src/window.cpp:1268: 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 i
n function 'cvShowImage'
Could someone guide me on how to properly on how to solve this issue?
Environment Setup Details:
Yocto version: Mickledore (L6.1.36_2.1.0)
DISTRO: fsl-imx-wayland
command used to compile : bitbake imx-image-multimedia
Thank you!
Olivia
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
How did you install opencv-python in Yocto? with pip or other? Recommend you use imx-image-full which has already installed the opencv-python.
Best Regards
Zhiming