From 2ed17c39539022c555e7e967838af46e2cd7e78f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tuomas=20J=C3=A4rvinen?= Date: Sun, 14 Jul 2024 20:11:56 +0200 Subject: [PATCH] Fixed README.md file in rtsp_ai_player --- misc/rtsp_ai_player/README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/misc/rtsp_ai_player/README.md b/misc/rtsp_ai_player/README.md index ad57f06..62b402f 100644 --- a/misc/rtsp_ai_player/README.md +++ b/misc/rtsp_ai_player/README.md @@ -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: