How to operate CSI/MIPI camera with YOLOv5 on Jetson Nano

I tried many ways to get csi camera working on yolov5 but failed.

Many people say that you can operate it using simple_camera.py in github/csi-camera, but I am wondering where should I insert that code in Yolov5’s detect.py code.

Hi,

Please check the below sample that runs YOLOv5 with Deepstream:

For the CSI camera, please replace the source with the following:

[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI 4=RTSP 5=CSI
type=5
camera-width=1280
camera-height=720
camera-fps-n=30
camera-fps-d=1

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.