Fixed README.md file in rtsp_ai_player

This commit is contained in:
Tuomas Järvinen
2024-07-14 20:11:56 +02:00
parent 43344365e3
commit 2ed17c3953
+7 -2
View File
@@ -1,6 +1,6 @@
# rtsp_ai_player
`rtsp_ai_player` is an application that listens to an RTSP stream, analyzes images with an AI model, and shows the results visually. It also controls a gimbal camera to zoom in on the recognized objects. Application uses YOLOv8 AI models converted to ONNX format.
`rtsp_ai_player` is an application that listens to an RTSP stream, analyzes images with an AI model, and shows the results visually. It also controls a gimbal camera to zoom in on the recognized objects. Application uses YOLOv8 AI models converted to the ONNX format.
## How to convert PT file to ONNX format
```bash
@@ -9,12 +9,17 @@ yolo export model=azaion-2024-06-28.pt dynamic=False format=onnx imgsz=640,640
## How to use application locally on a Linux PC.
# Install ONNX runtime
wget https://github.com/microsoft/onnxruntime/releases/download/v1.18.0/onnxruntime-linux-x64-1.18.0.tgz
sudo tar xf onnxruntime-linux-x64-1.18.0.tgz -C /opt
### Install ffmpeg and mediamtx RTSP server:
```bash
sudo apt update
sudo apt install ffmpeg
wget https://github.com/bluenviron/mediamtx/releases/download/v1.8.4/mediamtx_v1.8.4_linux_amd64.tar.gz
tar xf -C mediamtx mediamtx_v1.8.4_linux_amd64.tar.gz
mkdir mediamtx
tar xf mediamtx_v1.8.4_linux_amd64.tar.gz -C mediamtx
```
### Launch mediamtx RTSP server: