Hello,
I have been redirected here from https://developer.qualcomm.com/forum/qdn-forums/hardware/qualcomm-roboti...
I tried following the example in https://developer.qualcomm.com/project/object-detection-tensorflow-lite#....
but I get the follwing error:
/home/src/webcam-detect-tflite ./webcam-detector
Loading model: mobilenet_quant_v1_224.tflite
(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.
If I change the api in the OpenCV code in main.cpp from cv::CAP_ANY to cv::CAP_V4L2, I get the follwing error:
(DEBUG) try_init_v4l2 VIDIOC_QUERYCAP "/dev/video0": Inappropriate ioctl for device
Unable to stop the stream: Inappropriate ioctl for device
If I try to list the video devices in the RB5, I get the following:
sh-4.4# ls -ltrh /dev/video*
crw-rw---- 1 root video 81, 1 Feb 23 2021 /dev/video1
crw-rw---- 1 root video 81, 33 Feb 23 2021 /dev/video33
crw-rw---- 1 root video 81, 32 Feb 23 2021 /dev/video32
crw-rw---- 1 root video 81, 0 Feb 23 2021 /dev/video0
sh-4.4# sudo apt-get install v4l-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
v4l-utils is already the newest version (1.14.2-1).
0 upgraded, 0 newly installed, 0 to remove and 106 not upgraded.
sh-4.4# v4l2-ctl --list-devices
msm_vidc_vdec ():
/dev/video32
/dev/video33
/dev/radio0
/dev/v4l-subdev2
/dev/v4l-subdev3
/dev/v4l-subdev4
/dev/v4l-subdev5
/dev/v4l-subdev6
/dev/v4l-subdev7
VIDIOC_QUERYCAP: failed: Inappropriate ioctl for device
/dev/video0: not a v4l2 node
sh-4.4# sudo v4l2-ctl --device=/dev/video0 --all
VIDIOC_QUERYCAP: failed: Inappropriate ioctl for device
/dev/video0: not a v4l2 node
sh-4.4# sudo v4l2-ctl --device=/dev/video1 --all
VIDIOC_QUERYCAP: failed: Inappropriate ioctl for device
/dev/video1: not a v4l2 node
Please help me resolve the above issues.
Thanks.
If I try to build OpenCV Wayland with
I get: