Hi,
I want to connect two cameras to the EVM board. I am using Processor SDK Linux with tag (08.06.01.02) released on (12 May 2023).
When I connect two USB cameras to the EVM, the cameras are detected as.
USB Camera 0 detected
device = /dev/video6
format = jpeg
USB Camera 1 detected
device = /dev/video3
format = jpeg
I also confirmed by using this command,
sh-5.0# ls /dev/v4l/by-id/
usb-046d_C922_Pro_Stream_Webcam_826F179F-video-index0
usb-046d_C922_Pro_Stream_Webcam_826F179F-video-index1
usb-HD_USB_Camera_HD_USB_Camera_2020042508-video-index0
usb-HD_USB_Camera_HD_USB_Camera_2020042508-video-index1
However, when I try to read from the cameras using built-in opencv, I get this warning message and the program just stalls at this point,
(python3:17894): GStreamer-CRITICAL **: 07:18:12.175:
Trying to dispose element pipeline1, but it is in PAUSED instead of the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element.
(python3:17894): GStreamer-CRITICAL **: 07:18:12.175: gst_element_post_message: assertion 'GST_IS_ELEMENT (element)' failed
Can you guide me about this message and how I can read both cameras?
FYI, for reading cameras, I am using conventional cv2.VideoCapture() for both cameras. I have tried and tested with one camera and it works fine.
Thanks,
Ahmed