cv2.imshow() Error: Function Not Implemented - install libgtk2.0-dev and pkg-config OpenCV 4.7.0

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

cv2.imshow() Error: Function Not Implemented - install libgtk2.0-dev and pkg-config OpenCV 4.7.0

254件の閲覧回数
Olivia
Contributor I


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

0 件の賞賛
返信
1 返信

232件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信