tsutof / tiny_yolov2_onnx_cam

Tiny YOLO v2 Inference Application with NVIDIA TensorRT
45 stars 15 forks source link

Warning: Cannot query video position #7

Open huseman21 opened 3 years ago

huseman21 commented 3 years ago

Video capture does start however no recognition takes place. below is the terminal output. Im running the newest jetson 4.4

GST_ARGUS: Creating output stream CONSUMER: Waiting until producer is connected... GST_ARGUS: Available Sensor modes : GST_ARGUS: 2592 x 1944 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 16.000000; Exposure Range min 34000, max 550385000;

GST_ARGUS: 2592 x 1458 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 16.000000; Exposure Range min 34000, max 550385000;

GST_ARGUS: 1280 x 720 FR = 120.000005 fps Duration = 8333333 ; Analog Gain range min 1.000000, max 16.000000; Exposure Range min 22000, max 358733000;

GST_ARGUS: Running with following settings: Camera index = 0 Camera mode = 2 Output Stream W = 1280 H = 720 seconds to Run = 0 Frame Rate = 120.000005 GST_ARGUS: Setup Complete, Starting captures for 0 seconds GST_ARGUS: Starting repeat capture requests. CONSUMER: Producer has connected; continuing. [ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (933) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1 Reading engine from file model.trt


Looks like these guys might have solved a similar issue with another program. https://github.com/TheImagingSource/tiscamera/issues/332

tsutof commented 3 years ago

@huseman21 Thank you for your report. Please specify any negative number for the camera number at the command line when you are using a MIPI-CSI camera like Raspberry Pi camera.

$ python3 tiny_yolov2_onnx_cam.py --camera -1