Display images using opencv on imx8m mini

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Display images using opencv on imx8m mini

889 Views
ashish_m
Contributor I

Dear Members,

Please refer following information :

Board : 8MMINILPD4-EVK

DISTRO_VERSION = "5.15-honister"

DISTRO = "fsl-imx-xwayland"

 

we have connected HDMI display to development board we need to display storage images to display.

we used open cv and python for same .

for image display when cv2.imshow runs following error occured

File "/home/ashish/test/show_image.py", line 7, in <module> cv2.imshow('image window', image) cv2.error: OpenCV(4.5.4) /usr/src/debug/opencv/4.5.4.imx-r0/git/modules/highgui/src/window_gtk.cpp:635: error: (-2:Unspecified error) Can't initialize GTK backend in function 'cvInitSystem'

refer sample code for reference.

import cv2 

image = cv2.imread('sample.png')

cv2.imshow('image window', image)

Refer local_conf.txt for build information.

Any solution on this ?

 

 

0 Kudos
Reply
0 Replies