From db2e393e860155d4318eb9d4763b3dcd00ff74fc Mon Sep 17 00:00:00 2001 From: haotian <2421912570@qq.com> Date: Sun, 1 Mar 2026 14:01:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE=E7=94=A8?= =?UTF-8?q?=E4=BA=8E=E5=BE=AA=E7=8E=AF=E6=92=AD=E6=94=BE=E7=9A=84=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configs/sample_cam1_ppe12.json | 14 +++++++------- docs/requirements/guide.md | 2 ++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/configs/sample_cam1_ppe12.json b/configs/sample_cam1_ppe12.json index f3ef51c..b6c5fd7 100644 --- a/configs/sample_cam1_ppe12.json +++ b/configs/sample_cam1_ppe12.json @@ -146,19 +146,19 @@ "type": "alarm", "role": "sink", "enable": true, - "eval_fps": 0, + "eval_fps": 10, "labels": ["helmet", "gloves", "vest", "boots", "goggles", "none", "Person", "no_helmet", "no_goggle", "no_gloves", "no_boots", "violation"], "rules": [ { "name": "non_compliant_boots", "class_ids": [10], "roi": {"x": 0.0, "y": 0.0, "w": 1.0, "h": 1.0}, - "min_score": 0.1, - "min_box_area_ratio": 0.005, - "require_track_id": false, - "min_duration_ms": 500, - "min_hits": 1, - "hit_window_ms": 500, + "min_score": 0.3, + "min_box_area_ratio": 0.01, + "require_track_id": true, + "min_duration_ms": 800, + "min_hits": 2, + "hit_window_ms": 1000, "cooldown_ms": 5000, "per_track_cooldown_ms": 5000 } diff --git a/docs/requirements/guide.md b/docs/requirements/guide.md index 89c650f..8629b00 100644 --- a/docs/requirements/guide.md +++ b/docs/requirements/guide.md @@ -17,6 +17,8 @@ mediamtx.exe - 推流到RTSP服务器(设置摄像头的分辨率为720P) ffmpeg -f dshow -rtbufsize 100M -video_size 1280x720 -framerate 30 -vcodec mjpeg -i video="4K AutoFocus Webcam" -c:v libx264 -preset ultrafast -pix_fmt yuv420p -f rtsp rtsp://localhost:8554/cam +ffmpeg -stream_loop -1 -re -i "boots.mp4" -c:v libx264 -preset fast -tune zerolatency -r 30 -f rtsp -rtsp_transport tcp rtsp://localhost:8554/cam + - 本地验证RTSP拉流正确 ffplay rtsp://localhost:8554/cam