Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 602 Bytes

detection_with_usb_camera.md

File metadata and controls

29 lines (24 loc) · 602 Bytes

Yolov5 TensorRT inteference with usb camera

  • Adapted the opencv cv::VideoCapture code with usb camera on from USBCamera
  • Resolution of the video : 640 x 480

How to build

mkdir build
cd build 
cmake ..
make

How to run Yolov5trt inteference on video

cd build 
./video_inteference_yolov5

Notice

  • capture.open("/dev/video1") need to use your own camera device path.
  • check usb camera device
    cd /dev
    ls | grep video
    
    #see video0 detail info
    udevadm info --query=all --name=/dev/video0