I have installed opencv-wayland on Qualcomm’s rb5, but it did not install GStreamer automatically. Do I have to re-build opencv from scratch to install Gstreamer? Is there any OpenCV version where it can be run on wayland + have Gstreamer?
This is my error message when I am running VideoCapture on opencv-wayland.
(process:8785): **GStreamer-CRITICAL : 13:24:22.731: gst_element_get_state: assertion ‘GST_IS_ELEMENT (element)’ failed
OpenCV | GStreamer warning: GStreamer: unable to query pipeline state (/home/src/opencv-wayland/modules/videoio/src/cap_gstreamer.cpp:421)
(DEBUG) try_init_v4l2 VIDIOC_QUERYCAP “/dev/video0”: Inappropriate ioctl for device
Unable to stop the stream: Inappropriate ioctl for device
Failed to open VideoCapture.
I am trying to use tcp server & client architecture to send/receive camera frame on opencv in Qualcomm rb5. Is there any other architecture which I can use to use VideoCapture() in opencv on rb5?
I think OpenCV’s cv2.VideoCapture() function does not support creating a capture object using a Gstreamer pipeline string. Probably I have to use Gstreamer’s python bindings to interact with the pipeline directly and then use OpenCV to display the frames.