Hi,
i want to test the PyeIQ framework with a custom video/webcam but OpenCV returns a warning and the video with the inference results is not displayed. Here is the console output:
INFO: Created TensorFlow Lite delegate for NNAPI.
Applied NNAPI delegate.
====== VPUDEC: 4.5.5 build on Jul 17 2020 18:09:12. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 17 2020 16:50:14)
vpulib: 1.1.1
firmware: 1.1.1.0
[ WARN:0] global /usr/src/debug/opencv/4.2.0.imx-r0/git/modules/videoio/src/cap_gstreamer.cpp (898) open OpenCV | GStreamer warning: unable to query duration of stream
[ WARN:0] global /usr/src/debug/opencv/4.2.0.imx-r0/git/modules/videoio/src/cap_gstreamer.cpp (935) open OpenCV | GStreamer warning: Cannot query video position: status=1, value=27, duration=-1
Your video device could not capture any image.
The same warnings also appear when i run the switch_video app but the video with the object detection frames is displayed correctly.
I also tested just OpenCV in python with a USB webcam and video file. It returns the same warnings and doesn't display the stream.
When i use the following GStreamer command, the video file and webcam stream are displayed correctly:
gst-launch-1.0 filesrc location=<my filepath> typefind=true ! video/quicktime ! aiurdemux ! queue max-size-time=0 ! vpudec ! autovideosink
I am using the PyeIQ framework on an i.MX8M Plus with the Zeus Yocto version 5.4.24-2.1.0. The OpenCV Version is 4.2.0
Any ideas what the problem could be?