imx8: running pyeiq facial expression detection on 5.4.24 bsp with video source thowing error

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

imx8: running pyeiq facial expression detection on 5.4.24 bsp with video source thowing error

909 Views
vsuneja63
Contributor III

I could run facial expression detection on imx8mq evk(5.4.24 bsp) with input image. Same i tried to run with video source but its thowing error. Here are the logs:

INFO: Created TensorFlow Lite delegate for NNAPI.
Applied NNAPI delegate.
Using /dev/video2 as video device
Resolution not supported. Using 640x480 instead.
[ WARN:0] global /usr/src/debug/opencv/4.2.0.imx-r0/git/modules/videoio/src/cap_gstreamer.cpp (713) open OpenCV | GStreamer warning: Error opening bin: no element "imxvideoconvert_g2d"
[ WARN:0] global /usr/src/debug/opencv/4.2.0.imx-r0/git/modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
Your video device could not be initialized. Exiting...

As per my understanding imx8mq evk doesn't support g2d. So what can be done here to make it working?

Would like to here from you asap.

0 Kudos
6 Replies

802 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi,

In  your videocapture() is 0 when you have OV5640 is 1 or 2 when you have USBCAM.

Regards

0 Kudos

802 Views
vsuneja63
Contributor III

Given full permission to ov5640 camera & USBCAM video devices.

0 Kudos

802 Views
vsuneja63
Contributor III

Hi,

Thanks!

0(/dev/video0) for ov5640 & 2(/dev/video2) for USBCAM.

0 Kudos

802 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Vipul,

I could not reproduce this issue as you mentioned that you are using the latest BSP, do not why is try to open imagevideoconvertg2d since is not supported in MX8M, but in my test it works from imxcompositor, maybe you are playing with nonsupported camera.

Regards

0 Kudos

802 Views
vsuneja63
Contributor III

Hi,

Thanks!

Not getting error if using flag "--video_fwk=opencv". But with live streaming detection is not happening with camera ov5640(MINISASTOCSI), same working with USB webcam. How NXP camera could cause detection issue, sometime false detection happening. Tried recording a video by ov5640 also & tested it by passing as parameter but same no detection. How its differentiating with NXP ov5640 camera & usb web cam?

0 Kudos

802 Views
vsuneja63
Contributor III

Hi,

Thanks!

Any update on the issue, looking forward for your response.

0 Kudos