jetson tx2 on board camera yolov3 not working just stop

Hello nividia officials

I’m going to use the on board camera on jetson tx2
There is no response and it just stops.
Let me know why.

./darknet detector demo cfg/coco.data cfg/yolov3.cfg yolov3.weights “nvcamerasrc ! video/x-raw(memory:NVMM), width=(int)640, height=(int)360,format=(string)I420, framerate=(fraction)30/1 ! nvvidconv flip-method=0 ! video/x-raw, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink”

just stop

thank you

Hi,

Is darknet using OpenCV to open the camera?
If yes, please build OpenCV from the source.

The default OpenCV doesn’t enable GStreamer support.
But you can get one with this script:

sudo apt-get purge "libopencv*"
mkdir opencv
wget https://raw.githubusercontent.com/AastaNV/JEP/master/script/install_opencv3.4.0_TX2.sh
./install_opencv3.4.0_TX2.sh opencv

Thanks.