User Tools

Site Tools


projects:farmrobot:nvidia-jetson-tx1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
projects:farmrobot:nvidia-jetson-tx1 [2021/01/10 02:12]
jason
projects:farmrobot:nvidia-jetson-tx1 [2021/01/10 19:28]
jason
Line 6: Line 6:
 | ''jetson''  | ''jetson''    | | ''jetson''  | ''jetson''    |
  
-===== Running YOLOv5 with on-board camera =====+===== Running YOLOv5 with on-board CSI camera or external USB camera (Motion JPEG) =====
  
 Arguments for NVIDIA's GStreamer camera pipeline depend on supported camera formats. Arguments for NVIDIA's GStreamer camera pipeline depend on supported camera formats.
Line 13: Line 13:
  
 <file shell> <file shell>
 +# On-board CSI camera
 python3.8 detect.py --source "nvarguscamerasrc ! video/x-raw(memory:NVMM), width=(int)2592, height=(int)1458, framerate=(fraction)30/1, format=(string)NV12 ! nvvidconv flip-method=0 ! video/x-raw, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink" python3.8 detect.py --source "nvarguscamerasrc ! video/x-raw(memory:NVMM), width=(int)2592, height=(int)1458, framerate=(fraction)30/1, format=(string)NV12 ! nvvidconv flip-method=0 ! video/x-raw, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink"
 +
 +# External USB camera (Motion JPEG)
 +python3.8 detect.py --source "v4l2src device=/dev/video1 ! image/jpeg, width=(int)1920, height=(int)1080, framerate=30/1 ! nvv4l2decoder mjpeg=1 ! nvvidconv ! video/x-raw,format=BGRx ! videoconvert ! video/x-raw, format=BGR ! appsink"
 </file> </file>
 +
 +<WRAP important>
 +In the example above, the on-board CSI camera is represented by ''/dev/video0'' and the external USB camera by ''/dev/video1''. Depending on the configuration of connected cameras, these paths might differ.
 +</WRAP>
 +
 +<WRAP info>
 +See this [[https://stackoverflow.com/questions/65638140/create-pipeline-for-gstreamer-for-usb-camera-mjpg-format|Stack Overflow post]].
 +</WRAP>
  
 ===== Current data ===== ===== Current data =====
projects/farmrobot/nvidia-jetson-tx1.txt ยท Last modified: 2021/01/10 19:28 by jason