diff --git a/config/video_config.json b/config/video_config.json index 9d69e4c..4ebcec0 100644 --- a/config/video_config.json +++ b/config/video_config.json @@ -1,211 +1,213 @@ { - "video_service": { - "enabled": true - }, - "video_streams": [ - { - "enabled": true, - "id": "cam_01_intrusion", - "input_url": "rtsp://admin:hzx12345@192.168.1.10:554/Streaming/Channels/3101", - "module_config": { - "class_num": 3, - "intrusion_zone": [ - [ - 4, - 8 - ], - [ - 1057, - 13 - ], - [ - 1053, - 267 - ], - [ - 1347, - 289 - ], - [ - 1365, - 8 - ], - [ - 1911, - 6 - ], - [ - 1898, - 1077 - ], - [ - 7, - 1077 - ] - ], - "label_path": "/app/models/human.txt", - "light_device_ids": [ - "351", - "352", - "353", - "349", - "354" - ], - "mode": 2, - "model_path": "/app/models/human_detection.rknn", - "rknn_thread_num": 3, - "time_threshold_sec": 3 - }, - "module_type": "human_detection", - "output_rtsp": "rtsp://127.0.0.1:8554/ch1901" - }, - { - "enabled": true, - "id": "cam_02_intrusion", - "input_url": "rtsp://admin:hzx12345@192.168.1.10:554/Streaming/Channels/3201", - "module_config": { - "class_num": 3, - "intrusion_zone": [ - [ - 11, - 13 - ], - [ - 1907, - 13 - ], - [ - 1911, - 1074 - ], - [ - 7, - 1070 - ] - ], - "label_path": "/app/models/human.txt", - "light_device_ids": [ - "351", - "352", - "353", - "349", - "354" - ], - "mode": 2, - "model_path": "/app/models/human_detection.rknn", - "rknn_thread_num": 3, - "time_threshold_sec": 3 - }, - "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", - "module_config": { - "class_num": 3, - "intrusion_zone": [ - [ - 20, - 19 - ], - [ - 1891, - 35 - ], - [ - 1433, - 466 - ], - [ - 1006, - 619 - ], - [ - 1210, - 1001 - ], - [ - 1201, - 1072 - ], - [ - 2, - 1077 - ] - ], - "label_path": "/app/models/human.txt", - "model_path": "/app/models/human_detection.rknn", - "rknn_thread_num": 3, - "time_threshold_sec": 3 - }, - "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", - "module_config": { - "class_num": 3, - "intrusion_zone": [ - [ - 400, - 400 - ], - [ - 800, - 400 - ], - [ - 900, - 600 - ], - [ - 300, - 600 - ] - ], - "label_path": "/app/models/human.txt", - "model_path": "/app/models/human_detection.rknn", - "rknn_thread_num": 3, - "time_threshold_sec": 3 - }, - "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", - "module_config": { - "class_num": 3, - "intrusion_zone": [ - [ - 400, - 400 - ], - [ - 800, - 400 - ], - [ - 900, - 600 - ], - [ - 300, - 600 - ] - ], - "label_path": "/app/models/human.txt", - "model_path": "/app/models/human_detection.rknn", - "rknn_thread_num": 3, - "time_threshold_sec": 3 - }, - "module_type": "human_detection", - "output_rtsp": "rtsp://127.0.0.1:8554/ch1101" - } - ] + "video_service": { + "enabled": true + }, + "video_streams": [ + { + "enabled": true, + "id": "cam_01_intrusion", + "input_url": "rtsp://admin:hzx12345@192.168.1.10:554/Streaming/Channels/3101", + "module_config": { + "class_num": 3, + "intrusion_zone": [ + [ + 4, + 8 + ], + [ + 1057, + 13 + ], + [ + 1053, + 267 + ], + [ + 1347, + 289 + ], + [ + 1365, + 8 + ], + [ + 1911, + 6 + ], + [ + 1898, + 1077 + ], + [ + 7, + 1077 + ] + ], + "label_path": "/app/models/human.txt", + "light_device_ids": [ + "351", + "352", + "353", + "349", + "354", + "350" + ], + "mode": 2, + "model_path": "/app/models/human_detection.rknn", + "rknn_thread_num": 3, + "time_threshold_sec": 3 + }, + "module_type": "human_detection", + "output_rtsp": "rtsp://127.0.0.1:8554/ch1901" + }, + { + "enabled": true, + "id": "cam_02_intrusion", + "input_url": "rtsp://admin:hzx12345@192.168.1.10:554/Streaming/Channels/3201", + "module_config": { + "class_num": 3, + "intrusion_zone": [ + [ + 11, + 13 + ], + [ + 1907, + 13 + ], + [ + 1911, + 1074 + ], + [ + 7, + 1070 + ] + ], + "label_path": "/app/models/human.txt", + "light_device_ids": [ + "351", + "352", + "353", + "349", + "354", + "350" + ], + "mode": 2, + "model_path": "/app/models/human_detection.rknn", + "rknn_thread_num": 3, + "time_threshold_sec": 3 + }, + "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", + "module_config": { + "class_num": 3, + "intrusion_zone": [ + [ + 20, + 19 + ], + [ + 1891, + 35 + ], + [ + 1433, + 466 + ], + [ + 1006, + 619 + ], + [ + 1210, + 1001 + ], + [ + 1201, + 1072 + ], + [ + 2, + 1077 + ] + ], + "label_path": "/app/models/human.txt", + "model_path": "/app/models/human_detection.rknn", + "rknn_thread_num": 3, + "time_threshold_sec": 3 + }, + "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", + "module_config": { + "class_num": 3, + "intrusion_zone": [ + [ + 400, + 400 + ], + [ + 800, + 400 + ], + [ + 900, + 600 + ], + [ + 300, + 600 + ] + ], + "label_path": "/app/models/human.txt", + "model_path": "/app/models/human_detection.rknn", + "rknn_thread_num": 3, + "time_threshold_sec": 3 + }, + "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", + "module_config": { + "class_num": 3, + "intrusion_zone": [ + [ + 400, + 400 + ], + [ + 800, + 400 + ], + [ + 900, + 600 + ], + [ + 300, + 600 + ] + ], + "label_path": "/app/models/human.txt", + "model_path": "/app/models/human_detection.rknn", + "rknn_thread_num": 3, + "time_threshold_sec": 3 + }, + "module_type": "human_detection", + "output_rtsp": "rtsp://127.0.0.1:8554/ch1101" + } + ] } \ No newline at end of file