控制增加一个灯

This commit is contained in:
zengqile 2026-01-23 14:48:38 +08:00
parent 394c3430f9
commit a2ab8807d4
1 changed files with 211 additions and 209 deletions

View File

@ -1,211 +1,213 @@
{ {
"video_service": { "video_service": {
"enabled": true "enabled": true
}, },
"video_streams": [ "video_streams": [
{ {
"enabled": true, "enabled": true,
"id": "cam_01_intrusion", "id": "cam_01_intrusion",
"input_url": "rtsp://admin:hzx12345@192.168.1.10:554/Streaming/Channels/3101", "input_url": "rtsp://admin:hzx12345@192.168.1.10:554/Streaming/Channels/3101",
"module_config": { "module_config": {
"class_num": 3, "class_num": 3,
"intrusion_zone": [ "intrusion_zone": [
[ [
4, 4,
8 8
], ],
[ [
1057, 1057,
13 13
], ],
[ [
1053, 1053,
267 267
], ],
[ [
1347, 1347,
289 289
], ],
[ [
1365, 1365,
8 8
], ],
[ [
1911, 1911,
6 6
], ],
[ [
1898, 1898,
1077 1077
], ],
[ [
7, 7,
1077 1077
] ]
], ],
"label_path": "/app/models/human.txt", "label_path": "/app/models/human.txt",
"light_device_ids": [ "light_device_ids": [
"351", "351",
"352", "352",
"353", "353",
"349", "349",
"354" "354",
], "350"
"mode": 2, ],
"model_path": "/app/models/human_detection.rknn", "mode": 2,
"rknn_thread_num": 3, "model_path": "/app/models/human_detection.rknn",
"time_threshold_sec": 3 "rknn_thread_num": 3,
}, "time_threshold_sec": 3
"module_type": "human_detection", },
"output_rtsp": "rtsp://127.0.0.1:8554/ch1901" "module_type": "human_detection",
}, "output_rtsp": "rtsp://127.0.0.1:8554/ch1901"
{ },
"enabled": true, {
"id": "cam_02_intrusion", "enabled": true,
"input_url": "rtsp://admin:hzx12345@192.168.1.10:554/Streaming/Channels/3201", "id": "cam_02_intrusion",
"module_config": { "input_url": "rtsp://admin:hzx12345@192.168.1.10:554/Streaming/Channels/3201",
"class_num": 3, "module_config": {
"intrusion_zone": [ "class_num": 3,
[ "intrusion_zone": [
11, [
13 11,
], 13
[ ],
1907, [
13 1907,
], 13
[ ],
1911, [
1074 1911,
], 1074
[ ],
7, [
1070 7,
] 1070
], ]
"label_path": "/app/models/human.txt", ],
"light_device_ids": [ "label_path": "/app/models/human.txt",
"351", "light_device_ids": [
"352", "351",
"353", "352",
"349", "353",
"354" "349",
], "354",
"mode": 2, "350"
"model_path": "/app/models/human_detection.rknn", ],
"rknn_thread_num": 3, "mode": 2,
"time_threshold_sec": 3 "model_path": "/app/models/human_detection.rknn",
}, "rknn_thread_num": 3,
"module_type": "human_detection", "time_threshold_sec": 3
"output_rtsp": "rtsp://127.0.0.1:8554/ch1801" },
}, "module_type": "human_detection",
{ "output_rtsp": "rtsp://127.0.0.1:8554/ch1801"
"enabled": true, },
"id": "cam_03_intrusion", {
"input_url": "rtsp://admin:hzx12345@192.168.1.10:554/Streaming/Channels/1601", "enabled": true,
"module_config": { "id": "cam_03_intrusion",
"class_num": 3, "input_url": "rtsp://admin:hzx12345@192.168.1.10:554/Streaming/Channels/1601",
"intrusion_zone": [ "module_config": {
[ "class_num": 3,
20, "intrusion_zone": [
19 [
], 20,
[ 19
1891, ],
35 [
], 1891,
[ 35
1433, ],
466 [
], 1433,
[ 466
1006, ],
619 [
], 1006,
[ 619
1210, ],
1001 [
], 1210,
[ 1001
1201, ],
1072 [
], 1201,
[ 1072
2, ],
1077 [
] 2,
], 1077
"label_path": "/app/models/human.txt", ]
"model_path": "/app/models/human_detection.rknn", ],
"rknn_thread_num": 3, "label_path": "/app/models/human.txt",
"time_threshold_sec": 3 "model_path": "/app/models/human_detection.rknn",
}, "rknn_thread_num": 3,
"module_type": "human_detection", "time_threshold_sec": 3
"output_rtsp": "rtsp://127.0.0.1:8554/ch2201" },
}, "module_type": "human_detection",
{ "output_rtsp": "rtsp://127.0.0.1:8554/ch2201"
"enabled": false, },
"id": "cam_04_intrusion", {
"input_url": "rtsp://admin:hzx12345@192.168.1.10:554/Streaming/Channels/1101", "enabled": false,
"module_config": { "id": "cam_04_intrusion",
"class_num": 3, "input_url": "rtsp://admin:hzx12345@192.168.1.10:554/Streaming/Channels/1101",
"intrusion_zone": [ "module_config": {
[ "class_num": 3,
400, "intrusion_zone": [
400 [
], 400,
[ 400
800, ],
400 [
], 800,
[ 400
900, ],
600 [
], 900,
[ 600
300, ],
600 [
] 300,
], 600
"label_path": "/app/models/human.txt", ]
"model_path": "/app/models/human_detection.rknn", ],
"rknn_thread_num": 3, "label_path": "/app/models/human.txt",
"time_threshold_sec": 3 "model_path": "/app/models/human_detection.rknn",
}, "rknn_thread_num": 3,
"module_type": "human_detection", "time_threshold_sec": 3
"output_rtsp": "rtsp://127.0.0.1:8554/ch1201" },
}, "module_type": "human_detection",
{ "output_rtsp": "rtsp://127.0.0.1:8554/ch1201"
"enabled": false, },
"id": "cam_01_intrusion", {
"input_url": "rtsp://admin:hzx12345@192.168.1.10:554/Streaming/Channels/1101", "enabled": false,
"module_config": { "id": "cam_01_intrusion",
"class_num": 3, "input_url": "rtsp://admin:hzx12345@192.168.1.10:554/Streaming/Channels/1101",
"intrusion_zone": [ "module_config": {
[ "class_num": 3,
400, "intrusion_zone": [
400 [
], 400,
[ 400
800, ],
400 [
], 800,
[ 400
900, ],
600 [
], 900,
[ 600
300, ],
600 [
] 300,
], 600
"label_path": "/app/models/human.txt", ]
"model_path": "/app/models/human_detection.rknn", ],
"rknn_thread_num": 3, "label_path": "/app/models/human.txt",
"time_threshold_sec": 3 "model_path": "/app/models/human_detection.rknn",
}, "rknn_thread_num": 3,
"module_type": "human_detection", "time_threshold_sec": 3
"output_rtsp": "rtsp://127.0.0.1:8554/ch1101" },
} "module_type": "human_detection",
] "output_rtsp": "rtsp://127.0.0.1:8554/ch1101"
}
]
} }