GithubHelp home page GithubHelp logo

edge-ai4cv / yolov5-multi-video-inference Goto Github PK

View Code? Open in Web Editor NEW
15.0 1.0 1.0 29 KB

A simple YOLOv5 demonstration that inferencing multiple video files or IP cameras concurrently. Detection results are saved to video files.

License: Other

CMake 1.88% C++ 82.32% Cuda 15.80%
yolov5 video multithreading nvidia-jetson x86-64

yolov5-multi-video-inference's Introduction

Yolov5 multiple video inference

Features

  • Multi-threading yolov5 inference with multiple video files or IP cameras.
  • Display all the detection results within one window when inferencing.
  • Save detection results to video files.
  • Compatible with x86_64 and Nvidia Jeston platforms.

Prerequisites

How to build and run

  1. Generate yolov5 engine file as described in wang-xinyu/tensorrt/yolov5

  2. Build "yolov5-multi-video"

git clone https://github.com/edge-ai4cv/yolov5-multi-video.git
cd yolov5-multi-video
mkdir build
cd build
cmake ..
make
  1. Run "yolov5-multi-video"
// for multiple video files. results are saved as AVI format video files
./yolov5-multi-video -f [engine] [video1] [video1] [....]

// for multile IP cameras. results are saved as AVI format video files
./yolov5-multi-video -c [engine] [rtsp://cam1] [rtsp://cam2] [....]

// ------------- below functionalites are reserved from original Git for convenience---------------------
// for batched images in [image folder]. results are saved as JPG image files. 
sudo ./yolov5-multi-video -d [engine] [image folder]  

// for serialize model to engine file. 
./yolov5-multi-video -s [.wts] [.engine] [s/m/l/x or c gd gw]  
  1. To interrup program, press "Esc" and you can then access the saved video files.

Acknowledgments

yolov5-multi-video-inference's People

Contributors

edge-ai4cv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

haoduoyu1203

yolov5-multi-video-inference's Issues

how can i solve this error?

CMake Error at myplugins_generated_yololayer.cu.o.Debug.cmake:280 (message):
Error generating file
/home/nvidia/Desktop/guard/yolov5-multi-video-inference/build/CMakeFiles/myplugins.dir//./myplugins_generated_yololayer.cu.o

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.