FAST,EASY-LEARNING AI VIDEO PROJECT
-
This project, built upon PyAV (for video streaming) and TensorRT (for YOLO model inference), achieves real-time analysis and display of 8 video streams simultaneously. It encompasses the following core functionalities:
-
API-style invocation interface
-
Video stream acquisition
-
Model inference execution
The implementation leverages TensorRT to optimize inference speed, ensuring high-performance processing across all concurrent streams.
-
- please install cuda,cudnn and tensorrt before learning this project
- here is the installation of TensorRT
- running the below code after installing Tensorrt
trtexec --onnx=model.onnx \ --fp16 \ --saveEngine=model_int8.engine \ --workspace=4096
- move the exported engine file to /video_system/weights
- recommend conda environment
pip install -r requirement.txt
- main.py can run locally with a cv2.imshow
- video_stream.py run with push a rtsp streamer but need a NVR( mediamtx ...)