Everything is fine until I try to run it (via USB camera). My camera is video0. I get the following output.
root@Khadas:~/aml_npu_demo_binaries/detect_demo# ./detect_demo_uvc /dev/video0 1 > /dev/null
W Detect_api:[det_set_log_level:19]Set log level=1
W Detect_api:[det_set_log_level:21]output_format not support Imperfect, default to DET_LOG_TERMINAL
W Detect_api:[det_set_log_level:26]Not exist VSI_NN_LOG_LEVEL, Setenv set_vsi_log_error_level
(detect_demo_uvc:7005): GStreamer-CRITICAL **: 01:09:25.332: gst_element_get_state: assertion ‘GST_IS_ELEMENT (element)’ failed
^C
root@Khadas:~/aml_npu_demo_binaries/detect_demo#
Am I missing something? My camera is a Logitech C270. Programs like guvcview can use the camera fine. I have also made sure the programs are not in use incase there is some kind of device lock.
I have attempted this in FB mode as well. It gave a little bit more output. Sorry I dont have my TTY device with me so I could not get a print out. I had to take a picture.
It looks like the capture is still failing. However, it looks like it is because it is attempting 1920x1080. This camera only support 720p. Can this configuration be changed?