python工程,kafka消息对接转换成配置文件并完成类似看门狗监控linux系统进程,定期清理日志
wangrong
2025-04-04 9fa450e81ee48a012abbff44ce4094ecf19265ff
initial commit
54个文件已添加
35726 ■■■■■ 已修改文件
camera.list.txt 8446 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cameralist.txt 92 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
compare.py 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
dist/kafka-msg-test 补丁 | 查看 | 原始文档 | blame | 历史
dist/kafka_messages.txt 补丁 | 查看 | 原始文档 | blame | 历史
dist/kafka_msg_trans_config 补丁 | 查看 | 原始文档 | blame | 历史
dist/kafka_send_jsonfile 补丁 | 查看 | 原始文档 | blame | 历史
dist/main 补丁 | 查看 | 原始文档 | blame | 历史
dist/msg.txt 548 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
dist/msg_config.ini 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
dist/msg_config(复件).ini 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
dist/stzcU97n 补丁 | 查看 | 原始文档 | blame | 历史
dist/test_kfk_mst_2_config 补丁 | 查看 | 原始文档 | blame | 历史
dist/test_process_list 补丁 | 查看 | 原始文档 | blame | 历史
ini-file-comments.png 补丁 | 查看 | 原始文档 | blame | 历史
kafka_get_msg.py 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
kafka_messages.txt 补丁 | 查看 | 原始文档 | blame | 历史
kafka_msg_trans_config.py 361 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
kafka_msg_trans_config.spec 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
kafka_send_jsonfile.py 73 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
kafka_send_jsonfile.spec 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
main.py 449 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
main.spec 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
msg_config.ini 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
parkwatch.log 274 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
parkwatch_start.sh 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
parkwatch_stop.sh 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
readme.txt 46 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
requirements.txt 81 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
result.txt 49 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
temp.txt 49 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
test2.py 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
test2.spec 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
test3.py 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
test_kfk_mst_2_config.spec 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
test_process_list.py 148 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
test_process_list.spec 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
textjson/base.json 77 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
textjson/cameralist.json 6372 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
textjson/cameralist.json.bak 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
textjson/config.json 73 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
textjson/focus_monitor_1.json 839 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
textjson/focus_monitor_2.json 839 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
textjson/focus_monitor_3.json 891 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
textjson/focus_monitor_4.json 839 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
textjson/focus_monitor_5.json 854 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
textjson/focus_monitor_6.json 854 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
textjson/focus_monitor_7.json 839 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
textjson/focus_monitor_8.json 659 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
textjson/focus_monitor_gate.json 271 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
textjson/newcameralist.json 2847 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
textjson/process_list.json 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
trans_cameralist.py 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wxc.config.json 8312 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
camera.list.txt
New file
Diff too large
cameralist.txt
New file
@@ -0,0 +1,92 @@
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.101:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 9 true (520,92),(712,80),(1264,488),(338,700)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.102:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 10 true (560,100),(692,108),(880,698),(40,676)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.103:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 11 true (512,144),(706,138),(844,688),(28,706)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.104:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 12 true (496,80),(706,80),(1016,626),(160,672)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.105:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 13 true (448,148),(692,128),(972,684),(18,684)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.106:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 14 true (600,76),(716,84),(1226,668),(324,712)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.107:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 15 true (548,154),(692,144),(1080,700),(252,684)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.108:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 16 true (560,114),(708,136),(1024,674),(168,658)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.109:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 17 true (530,98),(730,96),(1146,690),(40,700)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.110:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 18 true (592,114),(700,112),(1244,704),(474,700)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.111:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 19 true (554,128),(772,112),(1226,692),(264,700)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.112:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 20 true (564,122),(704,128),(1080,708),(210,716)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.113:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 21 true (594,98),(690,96),(1058,690),(232,700)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.114:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 22 true (578,122),(804,138),(1154,700),(100,698)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.115:554/Streaming/Channels/201 0.5 172.18.0.247:9092 3 23 true (586,100),(714,98),(1168,684),(258,700)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.116:554/Streaming/Channels/201 0.5 172.18.0.247:9092 3 24 true (520,92),(642,76),(906,688),(18,698)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.117:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 25 true (530,76),(816,90),(1256,684),(18,700)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.118:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 26 true (552,72),(696,76),(940,714),(64,698)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.122:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 30 true (554,64),(652,60),(1034,706),(128,700)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.123:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 31 true (546,64),(664,52),(1208,682),(208,700)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.124:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 32 true (554,68),(708,50),(1074,696),(260,688)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.125:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 33 true (560,90),(676,84),(1148,688),(284,696)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.126:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 34 true (560,154),(720,144),(1164,688),(120,696)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.127:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 35 true (508,106),(704,84),(1066,688),(84,706)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.128:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 36 true (524,80),(800,76),(1266,642),(52,634)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.129:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 37 true (522,56),(720,60),(1020,708),(42,692)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.130:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 38 true (602,42),(692,40),(1130,698),(322,704)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.131:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 39 true (530,68),(668,72),(992,700),(120,704)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.132:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 40 true (584,56),(700,48),(1154,706),(280,704)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.133:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 41 true (564,50),(680,42),(1016,700),(68,700)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.134:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 42 true (560,112),(680,92),(1106,704),(224,704)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.135:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 43 true (458,84),(608,88),(1258,698),(232,698)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.136:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 44 true (490,104),(730,84),(1210,716),(60,692)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.137:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 45 true (520,64),(682,48),(1242,668),(148,682)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.138:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 46 true (568,106),(730,114),(1160,680),(234,672)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.139:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 47 true (536,64),(730,68),(1266,626),(58,692)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.140:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 48 true (560,76),(722,76),(1148,704),(18,642)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.141:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 49 true (544,52),(690,44),(1088,698),(44,704)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.142:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 50 true (554,60),(746,42),(1064,700),(10,684)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.143:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 51 true (540,64),(728,56),(1264,498),(258,684)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.144:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 52 true (562,100),(786,100),(1258,648),(82,692)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.145:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 53 true (588,84),(728,84),(1250,680),(132,696)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.146:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 54 true (600,68),(746,56),(1144,712),(12,698)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.147:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 55 true (508,76),(752,64),(1258,596),(192,698)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.148:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 56 true (554,76),(732,64),(1188,698),(92,692)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.149:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 57 true (552,84),(706,76),(1194,692),(132,700)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.150:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 58 true (560,50),(684,42),(1042,700),(84,700)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.151:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 59 true (554,100),(770,106),(1192,700),(18,704)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.152:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 60 true (532,120),(748,114),(1180,684),(124,700)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.153:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 61 true (500,116),(704,96),(1276,436),(560,698)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.154:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 62 true (452,72),(600,68),(1240,706),(50,698)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.155:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 63 true (538,52),(716,56),(1122,704),(84,712)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.156:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 64 true (482,48),(816,40),(1266,684),(2,688)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.157:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 65 true (554,104),(698,80),(1266,700),(74,696)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.158:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 66 true (514,10),(684,20),(1260,452),(10,620)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.159:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 67 true (444,84),(786,68),(1264,500),(8,698)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.160:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 68 true (412,120),(700,114),(1210,698),(20,706)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.161:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 69 true (328,120),(1168,252),(1256,698),(18,690)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.162:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 70 true (554,32),(772,48),(1264,692),(18,688)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.163:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 71 true (524,72),(660,64),(1156,692),(52,704)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.164:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 72 true (554,84),(700,80),(1146,714),(124,706)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.165:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 73 true (580,68),(696,64),(1268,642),(400,712)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.166:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 74 true (664,84),(808,80),(1272,562),(418,712)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.167:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 75 true (532,60),(676,56),(890,708),(2,578)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.168:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 76 true (562,84),(720,84),(1188,700),(40,712)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.169:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 77 true (520,76),(696,98),(1140,698),(88,706)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.170:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 78 true (410,60),(1082,128),(1276,356),(4,700)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.171:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 79 true (496,106),(820,112),(1042,688),(4,256)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.172:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 80 true (508,48),(666,32),(1266,530),(194,554)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.173:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 81 true (626,106),(836,122),(1194,714),(132,684)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.174:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 82 true (504,90),(682,96),(994,714),(10,684)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.175:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 83 true (634,68),(808,100),(644,704),(8,410)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.176:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 84 true (604,48),(730,44),(1162,706),(74,704)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.177:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 85 true (656,50),(772,60),(1264,672),(218,698)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.178:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 86 true (576,72),(736,76),(1148,690),(82,692)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.179:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 87 true (568,98),(832,84),(1264,544),(122,690)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.180:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 88 true (650,64),(1024,68),(1268,712),(10,288)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.181:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 118 true (560,136),(730,128),(1212,700),(186,708)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.182:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 119 true (586,72),(728,68),(1216,716),(202,712)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.183:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 120 true (480,10),(664,18),(1242,708),(122,690)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.184:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 121 true (496,84),(668,84),(1172,714),(120,698)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.185:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 122 true (576,80),(706,76),(1098,708),(168,688)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.186:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 123 true (560,72),(960,84),(1236,712),(20,634)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.187:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 124 true (604,68),(810,52),(1272,572),(12,610)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.188:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 125 true (416,112),(736,114),(1250,700),(10,612)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.189:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 126 true (512,88),(738,96),(1260,516),(80,712)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.190:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 127 true (474,92),(706,84),(1058,706),(12,452)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.191:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 128 true (488,96),(720,84),(1066,692),(0,552)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.192:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 129 true (466,90),(802,84),(1274,474),(168,668)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.193:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 130 true (300,114),(740,148),(1210,698),(10,692)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.194:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 131 true (490,98),(900,112),(1106,698),(12,364)
rtsp://admin:Shmixcqwe%21%40%23@172.18.10.195:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 132 true (664,42),(866,50),(1188,666),(90,684)
compare.py
New file
@@ -0,0 +1,32 @@
def compare_files_with_rtspurl(a_file, b_file, c_file):
    """
    æ¯”较A文件和B文件,将A文件中id在B文件中存在的行修改为B文件中的rtspurl并写入C文件。
    :param a_file: A文件路径
    :param b_file: B文件路径
    :param c_file: C文件路径
    """
    # è¯»å–B文件,提取id与rtspurl的映射
    b_data = {}
    with open(b_file, 'r', encoding='utf-8') as b:
        for line in b:
            parts = line.strip().split()
            if len(parts) >= 6:
                b_data[parts[4]] = parts[0]  # ä»¥id为键,rtspurl为值
    # ç­›é€‰A文件中id在B文件中的行,并替换为B文件的rtspurl
    with open(a_file, 'r', encoding='utf-8') as a, open(c_file, 'w', encoding='utf-8') as c:
        for line in a:
            parts = line.strip().split()
            if len(parts) >= 6 and parts[4] in b_data:
                parts[0] = b_data[parts[4]]  # æ›¿æ¢rtspurl
                c.write(" ".join(parts) + "\n")
if __name__ == "__main__":
    # å®šä¹‰æ–‡ä»¶è·¯å¾„
    a_file_path = "cameralist.txt"
    b_file_path = "temp.txt"
    c_file_path = "result.txt"
    # è°ƒç”¨å‡½æ•°è¿›è¡Œæ¯”较
    compare_files_with_rtspurl(a_file_path, b_file_path, c_file_path)
dist/kafka-msg-test
Binary files differ
dist/kafka_messages.txt
dist/kafka_msg_trans_config
Binary files differ
dist/kafka_send_jsonfile
Binary files differ
dist/main
Binary files differ
dist/msg.txt
New file
@@ -0,0 +1,548 @@
Topic: vp_ba_crossline, Message: {
    "channel_index": 0,
    "frame_index": 801,
    "width": 1024,
    "height": 576,
    "fps": 24,
    "broke_for": "baresult",
    "timestamp": "20241224154235605",
    "ba_results_size": 1,
    "ba_results": [
        {
            "polymorphic_id": 1073741824,
            "ptr_wrapper": {
                "id": 2147483649,
                "data": {
                    "type": 1,
                    "involve_target_ids_in_frame": [
                        23
                    ],
                    "involve_region_in_frame": [
                        {
                            "point.x": 30,
                            "point.y": 140
                        },
                        {
                            "point.x": 610,
                            "point.y": 110
                        }
                    ],
                    "channel_index": 0,
                    "frame_index": 801,
                    "ba_label": "cross_line",
                    "record_image_name": "crossline_image__20241224154235604",
                    "record_video_name": "crossline_video__20241224154235604"
                }
            }
        }
    ]
}
Topic: vp_ba_crossline, Message: {
    "channel_index": 0,
    "frame_index": 1304,
    "width": 1024,
    "height": 576,
    "fps": 24,
    "broke_for": "baresult",
    "timestamp": "20241224154255936",
    "ba_results_size": 1,
    "ba_results": [
        {
            "polymorphic_id": 1073741824,
            "ptr_wrapper": {
                "id": 2147483649,
                "data": {
                    "type": 1,
                    "involve_target_ids_in_frame": [
                        29
                    ],
                    "involve_region_in_frame": [
                        {
                            "point.x": 30,
                            "point.y": 140
                        },
                        {
                            "point.x": 610,
                            "point.y": 110
                        }
                    ],
                    "channel_index": 0,
                    "frame_index": 1304,
                    "ba_label": "cross_line",
                    "record_image_name": "crossline_image__20241224154255934",
                    "record_video_name": "crossline_video__20241224154255935"
                }
            }
        }
    ]
}
Topic: vp_ba_crossline, Message: {
    "channel_index": 0,
    "frame_index": 1799,
    "width": 1024,
    "height": 576,
    "fps": 24,
    "broke_for": "baresult",
    "timestamp": "20241224154316342",
    "ba_results_size": 1,
    "ba_results": [
        {
            "polymorphic_id": 1073741824,
            "ptr_wrapper": {
                "id": 2147483649,
                "data": {
                    "type": 1,
                    "involve_target_ids_in_frame": [
                        39
                    ],
                    "involve_region_in_frame": [
                        {
                            "point.x": 30,
                            "point.y": 140
                        },
                        {
                            "point.x": 610,
                            "point.y": 110
                        }
                    ],
                    "channel_index": 0,
                    "frame_index": 1799,
                    "ba_label": "cross_line",
                    "record_image_name": "crossline_image__20241224154316338",
                    "record_video_name": "crossline_video__20241224154316339"
                }
            }
        }
    ]
}
Topic: vp_ba_crossline, Message: {
    "channel_index": 0,
    "frame_index": 1801,
    "width": 1024,
    "height": 576,
    "fps": 24,
    "broke_for": "baresult",
    "timestamp": "20241224154316412",
    "ba_results_size": 1,
    "ba_results": [
        {
            "polymorphic_id": 1073741824,
            "ptr_wrapper": {
                "id": 2147483649,
                "data": {
                    "type": 1,
                    "involve_target_ids_in_frame": [
                        39
                    ],
                    "involve_region_in_frame": [
                        {
                            "point.x": 30,
                            "point.y": 140
                        },
                        {
                            "point.x": 610,
                            "point.y": 110
                        }
                    ],
                    "channel_index": 0,
                    "frame_index": 1801,
                    "ba_label": "cross_line",
                    "record_image_name": "crossline_image__20241224154316410",
                    "record_video_name": "crossline_video__20241224154316411"
                }
            }
        }
    ]
}
Topic: vp_ba_crossline, Message: {
    "channel_index": 0,
    "frame_index": 1809,
    "width": 1024,
    "height": 576,
    "fps": 24,
    "broke_for": "baresult",
    "timestamp": "20241224154316708",
    "ba_results_size": 1,
    "ba_results": [
        {
            "polymorphic_id": 1073741824,
            "ptr_wrapper": {
                "id": 2147483649,
                "data": {
                    "type": 1,
                    "involve_target_ids_in_frame": [
                        39
                    ],
                    "involve_region_in_frame": [
                        {
                            "point.x": 30,
                            "point.y": 140
                        },
                        {
                            "point.x": 610,
                            "point.y": 110
                        }
                    ],
                    "channel_index": 0,
                    "frame_index": 1809,
                    "ba_label": "cross_line",
                    "record_image_name": "crossline_image__20241224154316706",
                    "record_video_name": "crossline_video__20241224154316706"
                }
            }
        }
    ]
}
Topic: vp_ba_crossline, Message: {
    "channel_index": 0,
    "frame_index": 2313,
    "width": 1024,
    "height": 576,
    "fps": 24,
    "broke_for": "baresult",
    "timestamp": "20241224154336627",
    "ba_results_size": 1,
    "ba_results": [
        {
            "polymorphic_id": 1073741824,
            "ptr_wrapper": {
                "id": 2147483649,
                "data": {
                    "type": 1,
                    "involve_target_ids_in_frame": [
                        48
                    ],
                    "involve_region_in_frame": [
                        {
                            "point.x": 30,
                            "point.y": 140
                        },
                        {
                            "point.x": 610,
                            "point.y": 110
                        }
                    ],
                    "channel_index": 0,
                    "frame_index": 2313,
                    "ba_label": "cross_line",
                    "record_image_name": "crossline_image__20241224154336625",
                    "record_video_name": "crossline_video__20241224154336626"
                }
            }
        }
    ]
}
Topic: vp_ba_crossline, Message: {
    "channel_index": 0,
    "frame_index": 2818,
    "width": 1024,
    "height": 576,
    "fps": 24,
    "broke_for": "baresult",
    "timestamp": "20241224154357340",
    "ba_results_size": 1,
    "ba_results": [
        {
            "polymorphic_id": 1073741824,
            "ptr_wrapper": {
                "id": 2147483649,
                "data": {
                    "type": 1,
                    "involve_target_ids_in_frame": [
                        58
                    ],
                    "involve_region_in_frame": [
                        {
                            "point.x": 30,
                            "point.y": 140
                        },
                        {
                            "point.x": 610,
                            "point.y": 110
                        }
                    ],
                    "channel_index": 0,
                    "frame_index": 2818,
                    "ba_label": "cross_line",
                    "record_image_name": "crossline_image__20241224154357337",
                    "record_video_name": "crossline_video__20241224154357337"
                }
            }
        }
    ]
}
Topic: vp_ba_crossline, Message: {
    "channel_index": 0,
    "frame_index": 3817,
    "width": 1024,
    "height": 576,
    "fps": 24,
    "broke_for": "baresult",
    "timestamp": "20241224154437696",
    "ba_results_size": 1,
    "ba_results": [
        {
            "polymorphic_id": 1073741824,
            "ptr_wrapper": {
                "id": 2147483649,
                "data": {
                    "type": 1,
                    "involve_target_ids_in_frame": [
                        85
                    ],
                    "involve_region_in_frame": [
                        {
                            "point.x": 30,
                            "point.y": 140
                        },
                        {
                            "point.x": 610,
                            "point.y": 110
                        }
                    ],
                    "channel_index": 0,
                    "frame_index": 3817,
                    "ba_label": "cross_line",
                    "record_image_name": "crossline_image__20241224154437695",
                    "record_video_name": "crossline_video__20241224154437695"
                }
            }
        }
    ]
}
Topic: vp_ba_crossline, Message: {
    "channel_index": 0,
    "frame_index": 3818,
    "width": 1024,
    "height": 576,
    "fps": 24,
    "broke_for": "baresult",
    "timestamp": "20241224154437736",
    "ba_results_size": 1,
    "ba_results": [
        {
            "polymorphic_id": 1073741824,
            "ptr_wrapper": {
                "id": 2147483649,
                "data": {
                    "type": 1,
                    "involve_target_ids_in_frame": [
                        85
                    ],
                    "involve_region_in_frame": [
                        {
                            "point.x": 30,
                            "point.y": 140
                        },
                        {
                            "point.x": 610,
                            "point.y": 110
                        }
                    ],
                    "channel_index": 0,
                    "frame_index": 3818,
                    "ba_label": "cross_line",
                    "record_image_name": "crossline_image__20241224154437734",
                    "record_video_name": "crossline_video__20241224154437735"
                }
            }
        }
    ]
}
Topic: vp_ba_crossline, Message: {
    "channel_index": 0,
    "frame_index": 3821,
    "width": 1024,
    "height": 576,
    "fps": 24,
    "broke_for": "baresult",
    "timestamp": "20241224154437841",
    "ba_results_size": 1,
    "ba_results": [
        {
            "polymorphic_id": 1073741824,
            "ptr_wrapper": {
                "id": 2147483649,
                "data": {
                    "type": 1,
                    "involve_target_ids_in_frame": [
                        85
                    ],
                    "involve_region_in_frame": [
                        {
                            "point.x": 30,
                            "point.y": 140
                        },
                        {
                            "point.x": 610,
                            "point.y": 110
                        }
                    ],
                    "channel_index": 0,
                    "frame_index": 3821,
                    "ba_label": "cross_line",
                    "record_image_name": "crossline_image__20241224154437839",
                    "record_video_name": "crossline_video__20241224154437840"
                }
            }
        }
    ]
}
Topic: vp_ba_crossline, Message: {
    "channel_index": 0,
    "frame_index": 3822,
    "width": 1024,
    "height": 576,
    "fps": 24,
    "broke_for": "baresult",
    "timestamp": "20241224154437879",
    "ba_results_size": 1,
    "ba_results": [
        {
            "polymorphic_id": 1073741824,
            "ptr_wrapper": {
                "id": 2147483649,
                "data": {
                    "type": 1,
                    "involve_target_ids_in_frame": [
                        85
                    ],
                    "involve_region_in_frame": [
                        {
                            "point.x": 30,
                            "point.y": 140
                        },
                        {
                            "point.x": 610,
                            "point.y": 110
                        }
                    ],
                    "channel_index": 0,
                    "frame_index": 3822,
                    "ba_label": "cross_line",
                    "record_image_name": "crossline_image__20241224154437874",
                    "record_video_name": "crossline_video__20241224154437875"
                }
            }
        }
    ]
}
Topic: vp_ba_crossline, Message: {
    "channel_index": 0,
    "frame_index": 3828,
    "width": 1024,
    "height": 576,
    "fps": 24,
    "broke_for": "baresult",
    "timestamp": "20241224154438084",
    "ba_results_size": 1,
    "ba_results": [
        {
            "polymorphic_id": 1073741824,
            "ptr_wrapper": {
                "id": 2147483649,
                "data": {
                    "type": 1,
                    "involve_target_ids_in_frame": [
                        85
                    ],
                    "involve_region_in_frame": [
                        {
                            "point.x": 30,
                            "point.y": 140
                        },
                        {
                            "point.x": 610,
                            "point.y": 110
                        }
                    ],
                    "channel_index": 0,
                    "frame_index": 3828,
                    "ba_label": "cross_line",
                    "record_image_name": "crossline_image__20241224154438083",
                    "record_video_name": "crossline_video__20241224154438083"
                }
            }
        }
    ]
}
Topic: vp_ba_crossline, Message: {
    "channel_index": 0,
    "frame_index": 4331,
    "width": 1024,
    "height": 576,
    "fps": 24,
    "broke_for": "baresult",
    "timestamp": "20241224154458021",
    "ba_results_size": 1,
    "ba_results": [
        {
            "polymorphic_id": 1073741824,
            "ptr_wrapper": {
                "id": 2147483649,
                "data": {
                    "type": 1,
                    "involve_target_ids_in_frame": [
                        99
                    ],
                    "involve_region_in_frame": [
                        {
                            "point.x": 30,
                            "point.y": 140
                        },
                        {
                            "point.x": 610,
                            "point.y": 110
                        }
                    ],
                    "channel_index": 0,
                    "frame_index": 4331,
                    "ba_label": "cross_line",
                    "record_image_name": "crossline_image__20241224154458019",
                    "record_video_name": "crossline_video__20241224154458019"
                }
            }
        }
    ]
}
Topic: vp_ba_crossline, Message: {
    "channel_index": 0,
    "frame_index": 3777,
    "width": 1024,
    "height": 576,
    "fps": 24,
    "broke_for": "baresult",
    "timestamp": "20241224155124632",
    "ba_results_size": 1,
    "ba_results": [
        {
            "polymorphic_id": 1073741824,
            "ptr_wrapper": {
                "id": 2147483649,
                "data": {
                    "type": 1,
                    "involve_target_ids_in_frame": [
                        57
                    ],
                    "involve_region_in_frame": [
                        {
                            "point.x": 30,
                            "point.y": 140
                        },
                        {
                            "point.x": 610,
                            "point.y": 110
                        }
                    ],
                    "channel_index": 0,
                    "frame_index": 3777,
                    "ba_label": "cross_line",
                    "record_image_name": "crossline_image__20241224155124631",
                    "record_video_name": "crossline_video__20241224155124632"
                }
            }
        }
    ]
}
dist/msg_config.ini
New file
@@ -0,0 +1,50 @@
[KAFKA]
server = 192.168.0.78:9092
topics = vp_ba_jam, vp_ba_stop, vp_ba_crossline, vp_tracking
public_topic = vp_ba_result
[OUTPUT]
file = kafka_messages.txt
[TRANSFER]
access_topic = cameralist
# Maximum number of video channels per process
channel_size = 12
# Detection algorithm types
actions = JAM,STOP,WRONG_WAY,BARRIER_GATE,CROWD_GATHERING,PERSON_FALLDOWN,FIRE
# Path and filename for the generated configuration file
outfile = textjson/focus_monitor.json
full_actions = JAM,STOP,WRONG_WAY,CROWD_GATHERING,PERSON_FALLDOWN,FIRE,JUNK_STACK,SMOCKING,BARRIER_GATE
# Whether to separately process video channels with actions specified in independent_action
need_independent = yes
# Channels with action BARRIER_GATE need separate detection, only detect BARRIER_GATE,JAM
independent_action = BARRIER_GATE,JAM
# Maximum number of channels in threads for separate detection
independent_channel_size = 1
# Default frame skip interval for stream pulling
default_skip_interval = 3
# Default frame skip interval for separately processed video channels
default_gate_interval = 1
# Default video resize ratio
video_resize_ratio = 0.5
# Default video source type
source_type = ffmpeg_rtsp
[PROCESSES]
process_file = textjson/process_list.json
[clean]
log_dir = /home/pc1/Public/videopipes/log
# Time to clean logs, in days
log_expiry_days = 30
file_dir = /home/pc1/Public/videopipes/record
# Time to clean files, in days
file_expiry_days = 60
# Set cleanup time in HH:MM:SS format
cleanup_time = 00:10:50
[SEND_MSG]
run_send = true
send_topics = cameralist
send_interval = 300
json_file = textjson/cameralist.json
dist/msg_config£¨¸´¼þ£©.ini
New file
@@ -0,0 +1,6 @@
[KAFKA]
server = 38.55.194.83:9092
topics = vp_ba_jam, vp_ba_stop, vp_ba_crossline, vp_tracking
[OUTPUT]
file = kafka_messages.txt
dist/stzcU97n
Binary files differ
dist/test_kfk_mst_2_config
Binary files differ
dist/test_process_list
Binary files differ
ini-file-comments.png
kafka_get_msg.py
New file
@@ -0,0 +1,40 @@
import os
from kafka import KafkaConsumer
from datetime import datetime
import configparser
# é…ç½®æ–‡ä»¶è·¯å¾„
config_file = os.path.join(os.getcwd(), 'msg_config.ini')
# è¯»å–配置文件
config = configparser.ConfigParser()
config.read(config_file)
# ä»Žé…ç½®æ–‡ä»¶ä¸­èŽ·å– Kafka å‚数和输出文件路径
KAFKA_SERVER = config['KAFKA']['server']
TOPIC = config['KAFKA']['topics'].split(', ')
output_file = os.path.join(os.getcwd(), config['OUTPUT']['file'])
print(f"Kafka æœåŠ¡å™¨åœ°å€: {KAFKA_SERVER}")
print(f"消费的主题: {TOPIC}")
print(f"输出文件路径: {output_file}")
# åˆ›å»º KafkaConsumer å®žä¾‹
consumer = KafkaConsumer(
    *TOPIC,
    bootstrap_servers=[KAFKA_SERVER],
    group_id='test_group',
    value_deserializer=lambda x: x.decode('utf-8')
)
# æ‰“开文件以追加写入
with open(output_file, 'a', encoding='utf-8') as f:
    for message in consumer:
        topic = message.topic
        value = message.value
        f.write(f"Topic: {topic}, Message: {value}\n")
        f.flush()
        print(f"当前时间: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}, å½“前主题: {topic}")
        #print(f"接收到消息: Topic: {topic}, Message: {value}")
kafka_messages.txt
kafka_msg_trans_config.py
New file
@@ -0,0 +1,361 @@
import json
import configparser
import os
import subprocess
import logging
from kafka import KafkaConsumer
# è®¾ç½®æ—¥å¿—记录
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
logger = logging.getLogger(__name__)
def read_config(config_path):
    """读取配置文件"""
    config = configparser.ConfigParser()
    config.read(config_path)
    return config
def subscribe_kafka(config):
    """订阅Kafka topic"""
    kafka_server = config['KAFKA']['server']
    topic = config['TRANSFER']['topic_1']
    consumer = KafkaConsumer(
        topic,
        bootstrap_servers=kafka_server,
        value_deserializer=lambda m: json.loads(m.decode('utf-8'))
        #auto_offset_reset='earliest'
    )
    logger.info(f"成功订阅 Kafka ä¸»é¢˜: {topic}")
    return consumer
def process_kafka_message(message, config, file_index):
    """解析Kafka消息并按channel_size拆分写入JSON"""
    output_dir = os.path.dirname(config['TRANSFER']['outfile'])
    os.makedirs(output_dir, exist_ok=True)
    channel_size = int(config['TRANSFER']['channel_size'])
    # è¯»å–允许的 actions
    allowed_actions = set(config['TRANSFER']['actions'].split(','))
    # è§£æžé€šé“信息
    channels = message.get("channels", [])
    logger.info(f"收到 Kafka æ¶ˆæ¯ï¼ŒåŒ…含 {len(channels)} ä¸ªé€šé“")
    # è¯»å–配置模板
    config_template = {
        "version": "1.0",
        "show_screen": False,
        "show_board": False,
        "kafka_server": "172.18.0.247:9092",
        "kafka_topic": "vp_ba_result",
        "max_input_per_detection": channel_size,
        "ba_jam_config": message.get("ba_jam_config", {}),
        "ba_stop_config": message.get("ba_stop_config", {}),
        "ba_person_gathering_config": message.get("ba_person_gathering_config", {}),
        "ba_wrong_direction_config": message.get("ba_wrong_direction_config", {}),
        "channels": []
    }
    # æ‹†åˆ†é€šé“,每channel_size个写入一个新文件
    for i in range(0, len(channels), channel_size):
        config_template["channels"] = []
        for channel in channels[i:i + channel_size]:
            processed_channel = {
                "id": str(channel["id"]),
                "url": channel["url"],
                "source_type": "ffmpeg_rtsp",
                "resize_ratio": 0.5,
                "pix_width": channel.get("pix_width", 1280),
                "pix_height": channel.get("pix_height", 720),
                "actions": []
            }
            # å¤„理 actions,仅保留 STOP å’Œ JAM
            for act in channel.get("actions", []):
                action_name = act.get("action", "").upper()  # ç»Ÿä¸€è½¬æ¢ä¸ºå¤§å†™
                if action_name not in allowed_actions:
                    continue  # è¿‡æ»¤æŽ‰ä¸åœ¨é…ç½®æ–‡ä»¶ä¸­çš„ action
                regions = act.get("regions", [])
                formatted_regions = []
                if len(regions) == 0:
                    processed_channel["actions"].append({
                        "action": action_name
                    })
                else:
                    # ç¡®ä¿ regions æ˜¯ä¸€ä¸ªæ•°ç»„,并且其中的元素符合格式
                    action_region = []
                    for point in regions:
                        if isinstance(point, list) and len(point) > 0:
                            action_region.append([int(point[0]),int(point[1])])
                    formatted_regions.append(action_region)
                    processed_channel["actions"].append({
                        "action": action_name,
                        "regions": formatted_regions
                    })
            # ä»…当 actions ä¸ä¸ºç©ºæ—¶æ‰åŠ å…¥ channels
            if processed_channel["actions"]:
                config_template["channels"].append(processed_channel)
        # å†™å…¥ JSON æ–‡ä»¶
        file_path = os.path.join(output_dir, f"config_{file_index}.json")
        try:
            with open(file_path, 'w') as f:
                json.dump(config_template, f, indent=4)
            logger.info(f"已生成配置文件: {file_path}")
        except IOError as e:
            logger.error(f"写入 {file_path} å¤±è´¥: {e}")
        file_index += 1
    return file_index
def get_process_pids(process_name):
    """获取进程名称匹配的所有PID"""
    try:
        output = subprocess.check_output(["pgrep", "-f", process_name], text=True)
        return [int(pid) for pid in output.strip().split("\n") if pid]
    except subprocess.CalledProcessError:
        return []
def manage_processes(config):
    """管理进程:停止旧进程,启动新进程"""
    process_file = config['PROCESSES']['process_file']
    try:
        with open(process_file, 'r') as f:
            process_data = json.load(f)
    except Exception as e:
        logger.error(f"读取进程文件失败: {e}")
        return
    # åœæ­¢è¿›ç¨‹
    process_names = process_data.get("process_names", [])
    for process in process_names:
        pids = get_process_pids(process)
        for pid in pids:
            try:
                os.kill(pid, 9)
                logger.info(f"成功停止进程 {process} (PID: {pid})")
            except ProcessLookupError:
                logger.warning(f"进程 {process} (PID: {pid}) ä¸å­˜åœ¨")
            except Exception as e:
                logger.error(f"停止进程 {process} å¤±è´¥: {e}")
    # å¯åŠ¨è¿›ç¨‹
    for process in process_data.get("process_list", []):
        start_process(process)
def start_process(proc):
    """启动单个进程"""
    program_path = proc.get('program_path')
    command_ = proc.get('commands')
    try:
        if program_path == "gnome-terminal":
            subprocess.Popen([program_path, '--', 'bash', '-c', command_])
        elif program_path == "xterm":
            subprocess.Popen([program_path, '-e', 'bash -c "' + command_ + '"'])
        elif program_path == "konsole":
            subprocess.Popen([program_path, '--hold', '-e', 'bash -c "' + command_ + '"'])
        else:
            subprocess.Popen([program_path, '-c', command_])
        logger.info(f"启动进程: {command_}")
    except FileNotFoundError as e:
        logger.error(f"终端程序未找到: {e}")
    except Exception as e:
        logger.error(f"启动进程失败: {e}")
def main():
    """主函数"""
    config_path = 'msg_config.ini'
    config = read_config(config_path)
    consumer = subscribe_kafka(config)
    if not consumer:
        return
    file_index = 0
    for message in consumer:
        try:
            file_index = process_kafka_message(message.value, config, file_index)
            manage_processes(config)
        except Exception as e:
            logger.error(f"处理 Kafka æ¶ˆæ¯æ—¶å‘生错误: {e}")
if __name__ == "__main__":
    main()
'''
现有msg_config.ini文件,编写一份python程序,实现以下功能:
1. è¯»å–msg_config.ini文件,msg_config.ini文件内容如下:
[KAFKA]
server = 192.168.0.79:9092
topics = vp_ba_jam, vp_ba_stop, vp_ba_crossline, vp_tracking
[OUTPUT]
file = kafka_messages.txt
[TRANSFER]
topic_1 = cameralist
channel_size = 12
outfile = textjson/config.json
[PROCESSES]
process_file = textjson/process_list.json
[SEND_MSG]
run_send = true
send_topics = cameralist
send_interval = 300
json_file = textjson/cameralist.json
2. è®¢é˜…kafka并接受topic为cameralist消息,并解析该消息,消息格式示例如:
{"version":"1.0","channels":[{"id":9,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/101","actions":[{"action":"STOP","regions":[["560","120"],["706","116"],["1188","698"],["114","700"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["520","92"],["712","80"],["1264","488"],["338","700"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":10,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/202","actions":[{"action":"STOP","regions":[["538","80"],["692","68"],["1268","476"],["364","700"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["560","100"],["692","108"],["880","698"],["40","676"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720}],
    "ba_jam_config": {
        "check_interval_frames": 20,
        "check_max_distance": 8,
        "check_min_hit_frames": 50,
        "check_min_stops": 8,
        "check_notify_interval": 10,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_stop_config": {
        "check_interval_frames": 20,
        "check_max_distance": 5,
        "check_min_hit_frames": 50,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_person_gathering_config": {
        "check_interval_frames": 1,
        "check_min_hit_frames": 1,
        "check_notify_interval": 10,
        "min_gathering_person": 3,
        "need_record_image": true,
        "need_record_video": true,
        "person_gathering_distance_factor": 4.0
    },
    "ba_wrong_direction_config": {
        "check_interval_frames": 5,
        "check_min_hit_frames": 25,
        "check_notify_interval": 10,
        "half_width": 320,
        "need_record_image": true,
        "need_record_video": true
    }
}
3. è§£æžä¸Šè¿°æ¶ˆæ¯å†…容,生成以下json格式的内容并覆盖写入outfile对应值的文件路径,每channel_size个channel生成一份新文件,命名为:textjson/config_{n}.json:
{
    "version": "1.0",
    "show_screen": false,
    "show_board": false,
    "kafka_server": "172.18.0.247:9092",
    "kafka_topic": "vp_ba_result",
    "max_input_per_detection": 4,
    "ba_jam_config": {
        "check_interval_frames": 20,
        "check_max_distance": 8,
        "check_min_hit_frames": 50,
        "check_min_stops": 8,
        "check_notify_interval": 10,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_stop_config": {
        "check_interval_frames": 20,
        "check_max_distance": 5,
        "check_min_hit_frames": 50,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_person_gathering_config": {
        "check_interval_frames": 1,
        "check_min_hit_frames": 1,
        "check_notify_interval": 10,
        "min_gathering_person": 3,
        "need_record_image": true,
        "need_record_video": true,
        "person_gathering_distance_factor": 4.0
    },
    "ba_wrong_direction_config": {
        "check_interval_frames": 5,
        "check_min_hit_frames": 25,
        "check_notify_interval": 10,
        "half_width": 320,
        "need_record_image": true,
        "need_record_video": true
    },
    "channels": [
        {
            "id": "9",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/101",
            "source_type": "ffmpeg_rtsp",
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [[560,120],[706,116],1188,698],[114,700]]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [[520,92],[712, 80,[1264,488],[338,700]]
                    ]
                }
            ]
        },
        {
            "id": "10",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/201",
            "source_type": "ffmpeg_rtsp",
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [[560,120],[706,116],1188,698],[114,700]]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [[520,92],[712, 80,[1264,488],[338,700]]
                    ]
                }
            ]
        }
    ]
}
其中,max_input_per_detection的值为channel_size,actions下的元素仅保留action和regions,将regions写在一行之内,如没有regions,则将regions设置为默认值[]
4. æ–‡ä»¶å†™å…¥å®Œæ¯•之后,读取process_file指定的textjson/process_list.json进程清单文件,文件格式如:
{
    "process_names": ["top", "mixc2"],
    "process_list": [
        {"program_path": "gnome-terminal", "commands": "top -d 1"},
        {"program_path": "gnome-terminal", "commands": "top -p 1234"},
        {"program_path": "gnome-terminal", "commands": "top -u wr"},
        {"program_path": "gnome-terminal", "commands": "top -H"}
    ]
}
5. è¯»å–process_names,停止进程名开头为"top"、“mixc2”的所有进程;
6. åœæ­¢ä¸Šè¿°è¿›ç¨‹ä¹‹åŽ,读取process_list进程清单,并调起命令行终端启动process_list中的所有程序,直到所有程序启动完毕;
7. ç¡®ä¿è¯¥ç¨‹åºåœ¨linux下能执行。
'''
kafka_msg_trans_config.spec
New file
@@ -0,0 +1,38 @@
# -*- mode: python ; coding: utf-8 -*-
a = Analysis(
    ['kafka_msg_trans_config.py'],
    pathex=[],
    binaries=[],
    datas=[],
    hiddenimports=[],
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=[],
    noarchive=False,
    optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
    pyz,
    a.scripts,
    a.binaries,
    a.datas,
    [],
    name='kafka_msg_trans_config',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
    upx_exclude=[],
    runtime_tmpdir=None,
    console=True,
    disable_windowed_traceback=False,
    argv_emulation=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,
)
kafka_send_jsonfile.py
New file
@@ -0,0 +1,73 @@
import json
import time
import configparser
from kafka import KafkaProducer
from threading import Timer
# è¯»å–配置文件
def load_config(config_file):
    config = configparser.ConfigParser()
    config.read(config_file)
    return config
# è¯»å– JSON æ–‡ä»¶å†…容
def load_json(json_file):
    with open(json_file, 'r') as f:
        return json.load(f)
# å‘送消息到 Kafka
def send_message(producer, topic, message):
    producer.send(topic, value=json.dumps(message).encode('utf-8'))
    print(f"Sent message to {topic}: {message}")
# å®šæ—¶å‘送消息
def send_periodically(producer, topic, message, interval, stop_flag):
    if stop_flag[0]:  # å¦‚æžœ stop_flag æ˜¯ True,则停止发送
        send_message(producer, topic, message)
        # è®¾ç½®å®šæ—¶å™¨ï¼ŒæŒ‰ç…§ç»™å®šçš„间隔继续发送
        Timer(interval, send_periodically, [producer, topic, message, interval, stop_flag]).start()
    else:
        print("Stopping periodic message sending.")
# åœæ­¢å®šæ—¶å™¨
def stop_sending(stop_flag):
    stop_flag[0] = False
    print("Message sending stopped.")
def main():
    # é…ç½®æ–‡ä»¶è·¯å¾„
    config_file = 'msg_config.ini'
    config = load_config(config_file)
    # Kafka é…ç½®
    kafka_server = config['KAFKA']['server']
    topics = config['KAFKA']['topics'].split(',')  # topics åˆ—表
    send_topics = config['SEND_MSG']['send_topics']
    run_send = config.getboolean('SEND_MSG', 'run_send')  # run_send ä¸ºå¸ƒå°”值
    send_interval = config.getint('SEND_MSG', 'send_interval')
    json_file = config['SEND_MSG']['json_file']
    # è¯»å–消息内容
    message = load_json(json_file)
    # åˆ›å»º Kafka producer
    producer = KafkaProducer(bootstrap_servers=kafka_server)
    # å¦‚果需要发送消息,则启动定时任务
    if run_send:
        print(f"Sending messages to {send_topics} every {send_interval} seconds...")
        # ä½¿ç”¨åˆ—表来实现可修改的标志位
        stop_flag = [True]
        # å¯åŠ¨å®šæ—¶å™¨
        send_periodically(producer, send_topics, message, send_interval, stop_flag)
        # ä¾‹å¦‚,可以在10秒后停止定时发送
        #time.sleep(10)
        #stop_sending(stop_flag)
    else:
        print("run_send is false. No messages will be sent.")
if __name__ == "__main__":
    main()
kafka_send_jsonfile.spec
New file
@@ -0,0 +1,38 @@
# -*- mode: python ; coding: utf-8 -*-
a = Analysis(
    ['kafka_send_jsonfile.py'],
    pathex=[],
    binaries=[],
    datas=[],
    hiddenimports=[],
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=[],
    noarchive=False,
    optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
    pyz,
    a.scripts,
    a.binaries,
    a.datas,
    [],
    name='kafka_send_jsonfile',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
    upx_exclude=[],
    runtime_tmpdir=None,
    console=True,
    disable_windowed_traceback=False,
    argv_emulation=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,
)
main.py
New file
@@ -0,0 +1,449 @@
import json
import configparser
import os
import sys
import subprocess
import logging
import threading
import argparse
import time
import datetime
import signal
import functools
from kafka import KafkaConsumer
from datetime import datetime, timedelta
import schedule
# åˆ›å»ºæ—¥å¿—记录器
logger = logging.getLogger(__name__)
# è®¾ç½®æ—¥å¿—级别
logger.setLevel(logging.INFO)
# åˆ›å»ºæ–‡ä»¶å¤„理器,日志写入到文件
file_handler = logging.FileHandler('./parkwatch.log')
file_handler.setLevel(logging.INFO)  # æ–‡ä»¶è¾“出的日志级别
# åˆ›å»ºæŽ§åˆ¶å°å¤„理器,日志输出到控制台
console_handler = logging.StreamHandler()
console_handler.setLevel(logging.INFO)  # æŽ§åˆ¶å°è¾“出的日志级别
# å®šä¹‰æ—¥å¿—格式
formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')
file_handler.setFormatter(formatter)
console_handler.setFormatter(formatter)
# å°†å¤„理器添加到日志记录器
logger.addHandler(file_handler)
logger.addHandler(console_handler)
# è®°å½•日志
logger.info("parkwatch Program started")
process_data = {}
def read_config(config_path):
    """读取配置文件"""
    config = configparser.ConfigParser()
    config.read(config_path)
    return config
def subscribe_kafka(config):
    """订阅Kafka topic"""
    kafka_server = config['KAFKA']['server']
    topic = config['TRANSFER']['access_topic']
    consumer = KafkaConsumer(
        topic,
        bootstrap_servers=kafka_server,
        value_deserializer=lambda m: json.loads(m.decode('utf-8'))
        #auto_offset_reset='earliest'
    )
    logger.info(f"subscribe Kafka topic : {topic} success!")
    return consumer
def process_kafka_message(message, config, file_index):
    """解析Kafka消息并按channel_size拆分写入JSON"""
    output_dir = os.path.dirname(config['TRANSFER']['outfile'])
    os.makedirs(output_dir, exist_ok=True)
    file_name, file_extension = os.path.splitext(os.path.basename(config['TRANSFER']['outfile']))
    channel_size = int(config['TRANSFER']['channel_size'])
    default_skip_interval = int(config['TRANSFER']['default_skip_interval'])
    default_gate_interval = int(config['TRANSFER']['default_gate_interval'])
    source_type = config['TRANSFER']['source_type']
    video_resize_ratio = round(float(config['TRANSFER']['video_resize_ratio']), 1)
    kfk_server = config['KAFKA']['server']
    public_topic = config['KAFKA']['public_topic']
    need_independent = config.getboolean('TRANSFER', 'need_independent')
    independent_action = [item.strip() for item in config['TRANSFER']['independent_action'].split(',')]
    independent_channel_size = int(config['TRANSFER']['independent_channel_size'])
    independent_channels = []  # ç”¨äºŽå­˜å‚¨éœ€è¦å•独处理的通道
    # è¯»å–允许的 actions
    allowed_actions = set(config['TRANSFER']['actions'].split(','))
    # è§£æžé€šé“信息
    channels = message.get("channels", [])
    logger.info(f"get Kafka message, contains {len(channels)} channels")
    # è¯»å–配置模板
    config_template = {
        "version": "1.0",
        "show_screen": False,
        "show_board": False,
        "kafka_server": kfk_server,
        "kafka_topic": public_topic,
        "max_input_per_detection": channel_size,
        "ba_jam_config": message.get("ba_jam_config", {}),
        "ba_stop_config": message.get("ba_stop_config", {}),
        "ba_person_gathering_config": message.get("ba_person_gathering_config", {}),
        "ba_person_fall_down_config": message.get("ba_person_fall_down_config", {}),
        "ba_wrong_direction_config": message.get("ba_wrong_direction_config", {}),
        "ba_barrier_gate_config": message.get("ba_barrier_gate_config", {}),
        "ba_fire_smoke_config": message.get("ba_fire_smoke_config", {}),
        "ba_junk_stack_config": message.get("ba_junk_stack_config", {}),
        "channels": []
    }
    # æ‹†åˆ†é€šé“,每channel_size个写入一个新文件
    for i in range(0, len(channels), channel_size):
        config_template["channels"] = []
        for channel in channels[i:i + channel_size]:
            processed_channel = {
                "id": str(channel["id"]),
                "url": channel["url"],
                "source_type": channel.get("source_type", source_type),
                "skip_interval": channel.get("skip_interval", default_skip_interval),
                "resize_ratio": channel.get("resize_ratio", video_resize_ratio),
                "pix_width": channel.get("pix_width", 1280),
                "pix_height": channel.get("pix_height", 720),
                "actions": []
            }
            # å¤„理 actions,仅保留 STOP å’Œ JAM
            for act in channel.get("actions", []):
                act["action"] = act.get("action", "").upper()
                if act["action"] not in allowed_actions:
                    continue  # è¿‡æ»¤æŽ‰ä¸åœ¨é…ç½®æ–‡ä»¶ä¸­çš„ action
                if act["action"] == independent_action[0] and need_independent:
                    processed_channel["skip_interval"] = default_gate_interval
                    # å°†è¯¥é€šé“添加到 independent_channels ä¸­ï¼Œè€Œä¸æ˜¯ config_template["channels"]
                    independent_channels.append(processed_channel)
                    processed_channel["actions"].append(act)
                    # ä¸å°†è¯¥é€šé“加入到 config_template["channels"]
                    continue
                processed_channel["actions"].append(act)
            # ä»…当 actions ä¸ä¸ºç©ºæ—¶æ‰åŠ å…¥ channels
            if processed_channel["actions"]:
                config_template["channels"].append(processed_channel)
        # å†™å…¥ JSON æ–‡ä»¶
        file_path = os.path.join(output_dir, f"{file_name}_{file_index}{file_extension}")
        write_config_file(config_template, file_path)
        file_index += 1
    # å¦‚æžœ independent_channels ä¸ä¸ºç©ºï¼Œå°†å…¶å†™å…¥ä¸€ä¸ªæ–°çš„æ–‡ä»¶
    if independent_channels:
        # è¿‡æ»¤æŽ‰ independent_channels ä¸­çš„ actions
        for channel in independent_channels:
            channel["actions"] = [act for act in channel["actions"] if act["action"] in independent_action]
        # æ›´æ–° config_template,设置最大通道数为 independent_channel_size
        config_template["channels"] = independent_channels
        config_template["max_input_per_detection"] = independent_channel_size
        # å†™å…¥æ–‡ä»¶
        file_path = os.path.join(output_dir, f"{file_name}_gate{file_extension}")
        write_config_file(config_template, file_path)
    return file_index
def write_config_file(config_template, file_path):
    try:
        with open(file_path, 'w') as f:
            json.dump(config_template, f, indent=4)
        logger.info(f"created file: {file_path}")
    except IOError as e:
        logger.error(f"write file: {file_path} faild: {e}")
def get_process_pids(process_name):
    """获取进程名称匹配的所有PID"""
    try:
        output = subprocess.check_output(["pgrep", "-x", process_name], text=True)
        return [int(pid) for pid in output.strip().split("\n") if pid]
    except subprocess.CalledProcessError:
        return []
def get_process_info(config):
    """
    èŽ·å–è¿›ç¨‹ä¿¡æ¯ï¼Œä»Žé…ç½®æ–‡ä»¶ä¸­çš„process_file加载数据。
    :param config: é…ç½®å­—典,包含PROCESS配置
    :return: è¿›ç¨‹æ•°æ®å­—å…¸
    """
    process_data = {}
    # ä»Žé…ç½®ä¸­èŽ·å–process_file路径
    process_file = config['PROCESSES']['process_file']
    if not process_file:
        logger.error("Configuration missing 'process_file' in PROCESSES section.")
        return process_data
    try:
        # æ‰“开文件并加载JSON数据
        with open(process_file, 'r') as file:
            process_data = json.load(file)
            logger.info(f"Successfully loaded process data from {process_file}")
    except FileNotFoundError:
        logger.error(f"Process file '{process_file}' not found.")
    except json.JSONDecodeError:
        logger.error(f"Error decoding JSON from the process file '{process_file}'.")
    except Exception as e:
        logger.error(f"Unexpected error when reading process file '{process_file}': {e}")
    return process_data
def manage_processes(process_data):
    """定期检查进程状态并在进程停止时重新启动"""
    if not process_data:
        logging.error("process_data is empty, not starting the monitor thread")
        return
    # åœæ­¢è¿›ç¨‹
    process_list = process_data.get("process_list", [])
    for process in process_list:
        pids = get_process_pids(process.get("process_name"))
        for pid in pids:
            try:
                if os.path.exists(f"/proc/{pid}"):
                    os.kill(pid, 9)
                    logger.info(f"stop success {process} (PID: {pid})")
                else:
                    logger.warning(f"Process {process} (PID: {pid}) does not exist")
            except ProcessLookupError:
                logger.warning(f"process {process} (PID: {pid}) is not exists")
            except Exception as e:
                logger.error(f"stop process {process} faild: {e}")
    # å¯åŠ¨è¿›ç¨‹
    for process in process_data.get("process_list", []):
        start_process(process)
def start_process(proc):
    """启动单个进程"""
    program_path = proc.get('program_path')
    command_ = proc.get('commands')
    try:
        if program_path == "gnome-terminal":
            subprocess.Popen([program_path, '--', 'bash', '-c', command_])
        elif program_path == "xterm":
            subprocess.Popen([program_path, '-e', 'bash -c "' + command_ + '"'])
        elif program_path == "konsole":
            subprocess.Popen([program_path, '--hold', '-e', 'bash -c "' + command_ + '"'])
        else:
            subprocess.Popen([program_path, '-c', command_])
        logger.info(f"start process : {command_}")
    except FileNotFoundError as e:
        logger.error(f"terminel programe not find: {e}")
    except Exception as e:
        logger.error(f"start process faild: {e}")
def stop_process(pids):
    """停止指定PID的进程"""
    for pid in pids:
        try:
            os.kill(pid, signal.SIGTERM)  # Try graceful stop
            logging.info(f"Sent SIGTERM to process with PID: {pid}")
            time.sleep(1)  # Wait for process to terminate
            if os.path.exists(f"/proc/{pid}"):
                os.kill(pid, signal.SIGKILL)  # Force kill if still running
                logging.info(f"Process {pid} killed with SIGKILL")
        except ProcessLookupError:
            logging.warning(f"Process with PID {pid} not found, might have exited already.")
        except PermissionError:
            logging.error(f"Permission denied while stopping process {pid}. Try running as root.")
        except Exception as e:
            logging.error(f"Error stopping process with PID {pid}: {e}")
def monitor_processes(process_data):
    """定期检查进程状态并在进程停止时重新启动"""
    if not process_data:
        logging.error("process_data is null, not starting the monitor thread")
        return
    process_list = process_data.get("process_list", [])
    interval_seconds = process_data.get("interval_monitor_seconds", 10)
    stop_start_hour = process_data.get("stop_start_hour", 0)
    stop_end_hour = process_data.get("stop_end_hour", 5)
    if not isinstance(interval_seconds, (int, float)) or interval_seconds <= 0:
        logging.warning(f"the interval_seconds is not effective {interval_seconds}, defaulting to 10 seconds")
        interval_seconds = 10  # å…œåº•ç­–ç•¥
    while True:
        try:
            current_time = datetime.now()
            current_hour = current_time.hour
            if stop_start_hour <= current_hour < stop_end_hour:
                logging.info("Within 00:00 - 05:00, stopping all monitored processes.")
                for process in process_list:
                    process_name = process.get("process_name")
                    if not process_name or process_name=="Gate":
                        continue
                    pids = get_process_pids(process_name)
                    if pids:
                        stop_process(pids)
            else:
                for process in process_list:
                    process_name = process.get("process_name")
                    if not process_name:
                        continue
                    pids = get_process_pids(process_name)
                    if not pids:
                        logging.warning(f"Process {process_name} is not running, starting...")
                        start_process(process)
        except Exception as e:
            logging.error(f"Monitoring processes encountered an exception: {e}")
        time.sleep(interval_seconds)  # æŒ‰é…ç½®æ—¶é—´é—´é𔿣€æŸ¥
def stop_all_processes(process_data):
    """Stop all processes listed in the process_data."""
    process_list = process_data.get("process_list", [])
    for process in process_list:
        process_name = process.get("process_name")
        if process_name:
            pids = get_process_pids(process_name)
            for pid in pids:
                try:
                    os.kill(pid, signal.SIGTERM)  # Try graceful stop
                    logger.info(f"Sent SIGTERM to process: {process_name} (PID: {pid})")
                    time.sleep(1)  # Wait for process to terminate
                    if os.path.exists(f"/proc/{pid}"):
                        os.kill(pid, signal.SIGKILL)  # Force kill if still running
                        logger.info(f"Sent SIGKILL to process: {process_name} (PID: {pid})")
                except ProcessLookupError:
                    logger.warning(f"Process {process_name} (PID: {pid}) not found.")
                except Exception as e:
                    logger.error(f"Error stopping process {process_name} (PID: {pid}): {e}")
def restart_processes(process_data):
    """Restart all processes listed in the process_data."""
    process_list = process_data.get("process_list", [])
    for process in process_list:
        start_process(process)  # Restart the process using existing start_process function
def exit_handler(signum, frame, process_data):
    """Exit handler to stop all processes on script exit."""
    logger.info("Exiting program, stopping all processes...")
    stop_all_processes(process_data)  # Stop all processes
    sys.exit(0)
def clean_files(log_dir,log_expiry_time,file_dir,file_expiry_time):
    """清理过期的日志文件和录制文件"""
    logger.info(f"[{datetime.now()}] Starting cleanup process...")
    # æ¸…理日志文件
    for filename in os.listdir(log_dir):
        file_path = os.path.join(log_dir, filename)
        if os.path.isfile(file_path):
            file_mtime = os.path.getmtime(file_path)  # èŽ·å–æ–‡ä»¶çš„ä¿®æ”¹æ—¶é—´
            if file_mtime < log_expiry_time:  # å¦‚果文件超过指定的清理时间
                logger.info(f"Deleting log file: {file_path}")
                os.remove(file_path)
    # æ¸…理录制文件
    for filename in os.listdir(file_dir):
        file_path = os.path.join(file_dir, filename)
        if os.path.isfile(file_path):
            file_mtime = os.path.getmtime(file_path)  # èŽ·å–æ–‡ä»¶çš„ä¿®æ”¹æ—¶é—´
            if file_mtime < file_expiry_time:  # å¦‚果文件超过指定的清理时间
                logger.info(f"Deleting file: {file_path}")
                os.remove(file_path)
    logger.info(f"[{datetime.now()}] Cleanup process completed.")
def schedule_cleanup(config):
    """计划清理任务"""
    try:
        # è¯»å–配置
        cleanup_time = config['clean'].get('cleanup_time')
        log_dir = config['clean'].get('log_dir')
        log_expiry_days = int(config['clean'].get('log_expiry_days', 7))  # Default to 7 days if not set
        file_dir = config['clean'].get('file_dir')
        file_expiry_days = int(config['clean'].get('file_expiry_days', 7))  # Default to 7 days if not set
        if not cleanup_time or not log_dir or not file_dir:
            raise ValueError("Missing required configuration for cleanup: cleanup_time, log_dir, or file_dir.")
        # è®¡ç®—过期时间
        log_expiry_time = time.time() - (log_expiry_days * 24 * 60 * 60)
        file_expiry_time = time.time() - (file_expiry_days * 24 * 60 * 60)
        # è®¾ç½®æ¸…理任务
        schedule_time = datetime.strptime(cleanup_time, '%H:%M:%S').time()
        # å®‰æŽ’每天在指定时间清理文件
        schedule.every().day.at(cleanup_time).do(clean_files, log_dir=log_dir, log_expiry_time=log_expiry_time,
                                                 file_dir=file_dir, file_expiry_time=file_expiry_time)
        # èŽ·å–å½“å‰æ—¶é—´
        now = datetime.now()
        target_time = now.replace(hour=schedule_time.hour, minute=schedule_time.minute, second=schedule_time.second, microsecond=0)
        # å¦‚果目标时间已经过去,计划任务将推迟到明天
        if now > target_time:
            target_time += timedelta(days=1)
        wait_time = (target_time - now).total_seconds()
        logger.info(f"Waiting {wait_time} seconds until the next cleanup task.")
        time.sleep(wait_time)
        # è¿›å…¥è°ƒåº¦å¾ªçޝ
        while True:
            schedule.run_pending()
            time.sleep(60*60)  # ç­‰å¾…下一次任务
    except ValueError as ve:
        logger.error(f"Configuration error: {ve}")
    except KeyError as ke:
        logger.error(f"Missing configuration key: {ke}")
    except Exception as e:
        logger.error(f"Unexpected error occurred in schedule_cleanup: {e}")
def main():
    """主函数"""
    # è®¾ç½®å‘½ä»¤è¡Œå‚数解析
    parser = argparse.ArgumentParser(description="Process some integers.")
    parser.add_argument('--config', type=str, help="Path to the config file", default='msg_config.ini')
    args = parser.parse_args()
    config_path = args.config  # ä»Žå‘½ä»¤è¡ŒèŽ·å–é…ç½®æ–‡ä»¶è·¯å¾„
    config = read_config(config_path)
    process_data = get_process_info(config)
    signal.signal(signal.SIGINT, functools.partial(exit_handler, process_data=process_data))
    signal.signal(signal.SIGTERM, functools.partial(exit_handler, process_data=process_data))
    # å¯åŠ¨è¿›ç¨‹ç›‘æŽ§çº¿ç¨‹
    monitor_thread = threading.Thread(target=monitor_processes, args=(process_data,), daemon=True)
    monitor_thread.start()
    # å¯åŠ¨æ¸…ç†ä»»åŠ¡è°ƒåº¦çº¿ç¨‹
    cleanup_thread = threading.Thread(target=schedule_cleanup, args=(config,), daemon=True)
    cleanup_thread.start()
    consumer = subscribe_kafka(config)
    if not consumer:
        return
    for message in consumer:
        try:
            process_kafka_message(message.value, config, 1)
            manage_processes(process_data)
        except Exception as e:
            logger.error(f"deal the Kafka messages exception: {e}")
if __name__ == "__main__":
    main()
main.spec
New file
@@ -0,0 +1,38 @@
# -*- mode: python ; coding: utf-8 -*-
a = Analysis(
    ['main.py'],
    pathex=[],
    binaries=[],
    datas=[],
    hiddenimports=[],
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=[],
    noarchive=False,
    optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
    pyz,
    a.scripts,
    a.binaries,
    a.datas,
    [],
    name='main',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
    upx_exclude=[],
    runtime_tmpdir=None,
    console=False,
    disable_windowed_traceback=False,
    argv_emulation=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,
)
msg_config.ini
New file
@@ -0,0 +1,50 @@
[KAFKA]
server = 192.168.0.78:9092
topics = vp_ba_jam, vp_ba_stop, vp_ba_crossline, vp_tracking
public_topic = vp_ba_result
[OUTPUT]
file = kafka_messages.txt
[TRANSFER]
access_topic = cameralist
# Maximum number of video channels per process
channel_size = 12
# Detection algorithm types
actions = JAM,STOP,WRONG_WAY,BARRIER_GATE,CROWD_GATHERING,PERSON_FALLDOWN,FIRE
# Path and filename for the generated configuration file
outfile = /home/pc1/Public/message_kafka/focus_monitor.json
full_actions = JAM,STOP,WRONG_WAY,CROWD_GATHERING,PERSON_FALLDOWN,FIRE,JUNK_STACK,SMOCKING,BARRIER_GATE
# Whether to separately process video channels with actions specified in independent_action
need_independent = yes
# Channels with action BARRIER_GATE need separate detection, only detect BARRIER_GATE,JAM
independent_action = BARRIER_GATE,JAM
# Maximum number of channels in threads for separate detection
independent_channel_size = 1
# Default frame skip interval for stream pulling
default_skip_interval = 3
# Default frame skip interval for separately processed video channels
default_gate_interval = 1
# Default video resize ratio
video_resize_ratio = 0.5
# Default video source type
source_type = ffmpeg_rtsp
[PROCESSES]
process_file = /home/pc1/Public/message_kafka/process_list.json
[clean]
log_dir = /home/pc1/Public/videopipes/log
# Time to clean logs, in days
log_expiry_days = 30
file_dir = /home/pc1/Public/videopipes/record
# Time to clean files, in days
file_expiry_days = 60
# Set cleanup time in HH:MM:SS format
cleanup_time = 00:10:50
[SEND_MSG]
run_send = true
send_topics = cameralist
send_interval = 300
json_file = /home/pc1/Public/message_kafka/cameralist.json
parkwatch.log
New file
@@ -0,0 +1,274 @@
2025-04-04 19:37:03,281 - INFO - parkwatch Program started
2025-04-04 19:37:03,284 - INFO - Successfully loaded process data from /home/pc1/Public/message_kafka/process_list.json
2025-04-04 19:37:03,287 - INFO - <BrokerConnection node_id=bootstrap-0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 19:37:03,288 - INFO - Waiting 16426.711119 seconds until the next cleanup task.
2025-04-04 19:37:03,289 - INFO - Probing node bootstrap-0 broker version
2025-04-04 19:37:03,294 - INFO - <BrokerConnection node_id=bootstrap-0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Connection complete.
2025-04-04 19:37:03,295 - ERROR - stop process {'program_path': 'gnome-terminal', 'commands': 'top -H', 'process_name': 'top'} faild: [Errno 1] Operation not permitted
2025-04-04 19:37:03,296 - INFO - start process : top -H
2025-04-04 19:37:03,405 - INFO - Broker version identified as 2.5.0
2025-04-04 19:37:03,405 - INFO - Set configuration api_version=(2, 5, 0) to skip auto check_version requests on startup
2025-04-04 19:37:03,406 - WARNING - group_id is None: disabling auto-commit.
2025-04-04 19:37:03,406 - INFO - Updating subscribed topics to: ('cameralist',)
2025-04-04 19:37:03,406 - INFO - subscribe Kafka topic : cameralist success!
2025-04-04 19:37:03,412 - INFO - Updated partition assignment: [TopicPartition(topic='cameralist', partition=0)]
2025-04-04 19:37:03,413 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 19:37:03,513 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Connection complete.
2025-04-04 19:37:03,513 - INFO - <BrokerConnection node_id=bootstrap-0 host=192.168.0.78:9092 <connected> [IPv4 ('192.168.0.78', 9092)]>: Closing connection.
2025-04-04 19:39:57,210 - INFO - parkwatch Program started
2025-04-04 19:39:57,214 - INFO - Successfully loaded process data from /home/pc1/Public/message_kafka/process_list.json
2025-04-04 19:39:57,217 - INFO - Waiting 16252.78264 seconds until the next cleanup task.
2025-04-04 19:39:57,218 - INFO - <BrokerConnection node_id=bootstrap-0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 19:39:57,218 - INFO - Probing node bootstrap-0 broker version
2025-04-04 19:39:57,223 - INFO - <BrokerConnection node_id=bootstrap-0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Connection complete.
2025-04-04 19:39:57,225 - ERROR - stop process {'program_path': 'gnome-terminal', 'commands': 'top -H', 'process_name': 'top'} faild: [Errno 1] Operation not permitted
2025-04-04 19:39:57,225 - INFO - stop success {'program_path': 'gnome-terminal', 'commands': 'top -H', 'process_name': 'top'} (PID: 38855)
2025-04-04 19:39:57,226 - INFO - start process : top -H
2025-04-04 19:39:57,333 - INFO - Broker version identified as 2.5.0
2025-04-04 19:39:57,333 - INFO - Set configuration api_version=(2, 5, 0) to skip auto check_version requests on startup
2025-04-04 19:39:57,333 - WARNING - group_id is None: disabling auto-commit.
2025-04-04 19:39:57,333 - INFO - Updating subscribed topics to: ('cameralist',)
2025-04-04 19:39:57,333 - INFO - subscribe Kafka topic : cameralist success!
2025-04-04 19:39:57,340 - INFO - Updated partition assignment: [TopicPartition(topic='cameralist', partition=0)]
2025-04-04 19:39:57,340 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 19:39:57,440 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Connection complete.
2025-04-04 19:39:57,441 - INFO - <BrokerConnection node_id=bootstrap-0 host=192.168.0.78:9092 <connected> [IPv4 ('192.168.0.78', 9092)]>: Closing connection.
2025-04-04 19:40:09,015 - INFO - Exiting program, stopping all processes...
2025-04-04 19:40:09,034 - ERROR - Error stopping process top (PID: 37032): [Errno 1] Operation not permitted
2025-04-04 19:40:09,034 - INFO - Sent SIGTERM to process: top (PID: 39022)
2025-04-04 19:40:15,909 - INFO - parkwatch Program started
2025-04-04 19:40:15,913 - INFO - Successfully loaded process data from /home/pc1/Public/message_kafka/process_list.json
2025-04-04 19:40:15,917 - INFO - Waiting 16234.082476 seconds until the next cleanup task.
2025-04-04 19:40:15,919 - INFO - <BrokerConnection node_id=bootstrap-0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 19:40:15,919 - INFO - Probing node bootstrap-0 broker version
2025-04-04 19:40:15,924 - INFO - <BrokerConnection node_id=bootstrap-0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Connection complete.
2025-04-04 19:40:15,926 - ERROR - stop process {'program_path': 'gnome-terminal', 'commands': 'top -H', 'process_name': 'top'} faild: [Errno 1] Operation not permitted
2025-04-04 19:40:15,926 - INFO - start process : top -H
2025-04-04 19:40:16,031 - INFO - Broker version identified as 2.5.0
2025-04-04 19:40:16,031 - INFO - Set configuration api_version=(2, 5, 0) to skip auto check_version requests on startup
2025-04-04 19:40:16,032 - WARNING - group_id is None: disabling auto-commit.
2025-04-04 19:40:16,032 - INFO - Updating subscribed topics to: ('cameralist',)
2025-04-04 19:40:16,032 - INFO - subscribe Kafka topic : cameralist success!
2025-04-04 19:40:16,037 - INFO - Updated partition assignment: [TopicPartition(topic='cameralist', partition=0)]
2025-04-04 19:40:16,038 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 19:40:16,138 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Connection complete.
2025-04-04 19:40:16,138 - INFO - <BrokerConnection node_id=bootstrap-0 host=192.168.0.78:9092 <connected> [IPv4 ('192.168.0.78', 9092)]>: Closing connection.
2025-04-04 19:40:19,749 - INFO - Exiting program, stopping all processes...
2025-04-04 19:40:19,766 - ERROR - Error stopping process top (PID: 37032): [Errno 1] Operation not permitted
2025-04-04 19:40:19,766 - INFO - Sent SIGTERM to process: top (PID: 39066)
2025-04-04 19:43:26,009 - INFO - parkwatch Program started
2025-04-04 19:43:26,012 - INFO - Successfully loaded process data from /home/pc1/Public/message_kafka/process_list.json
2025-04-04 19:43:26,017 - INFO - Waiting 16043.982873 seconds until the next cleanup task.
2025-04-04 19:43:26,017 - INFO - <BrokerConnection node_id=bootstrap-0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 19:43:26,017 - INFO - Probing node bootstrap-0 broker version
2025-04-04 19:43:26,022 - INFO - <BrokerConnection node_id=bootstrap-0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Connection complete.
2025-04-04 19:43:26,024 - ERROR - stop process {'program_path': 'gnome-terminal', 'commands': 'top -H', 'process_name': 'top'} faild: [Errno 1] Operation not permitted
2025-04-04 19:43:26,025 - INFO - start process : top -H
2025-04-04 19:43:26,134 - INFO - Broker version identified as 2.5.0
2025-04-04 19:43:26,134 - INFO - Set configuration api_version=(2, 5, 0) to skip auto check_version requests on startup
2025-04-04 19:43:26,135 - WARNING - group_id is None: disabling auto-commit.
2025-04-04 19:43:26,135 - INFO - Updating subscribed topics to: ('cameralist',)
2025-04-04 19:43:26,135 - INFO - subscribe Kafka topic : cameralist success!
2025-04-04 19:43:26,144 - INFO - Updated partition assignment: [TopicPartition(topic='cameralist', partition=0)]
2025-04-04 19:43:26,144 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 19:43:26,244 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Connection complete.
2025-04-04 19:43:26,245 - INFO - <BrokerConnection node_id=bootstrap-0 host=192.168.0.78:9092 <connected> [IPv4 ('192.168.0.78', 9092)]>: Closing connection.
2025-04-04 19:43:53,663 - INFO - Exiting program, stopping all processes...
2025-04-04 19:43:53,680 - ERROR - Error stopping process top (PID: 37032): [Errno 1] Operation not permitted
2025-04-04 19:43:53,680 - INFO - Sent SIGTERM to process: top (PID: 39230)
2025-04-04 19:44:30,568 - INFO - parkwatch Program started
2025-04-04 19:44:30,572 - INFO - Successfully loaded process data from /home/pc1/Public/message_kafka/process_list.json
2025-04-04 19:44:30,576 - INFO - <BrokerConnection node_id=bootstrap-0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 19:44:30,576 - INFO - Probing node bootstrap-0 broker version
2025-04-04 19:44:30,577 - INFO - Waiting 15979.422491 seconds until the next cleanup task.
2025-04-04 19:44:30,580 - INFO - <BrokerConnection node_id=bootstrap-0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Connection complete.
2025-04-04 19:44:30,584 - ERROR - stop process {'program_path': 'gnome-terminal', 'commands': 'top -H', 'process_name': 'top'} faild: [Errno 1] Operation not permitted
2025-04-04 19:44:30,585 - INFO - start process : top -H
2025-04-04 19:44:30,689 - INFO - Broker version identified as 2.5.0
2025-04-04 19:44:30,689 - INFO - Set configuration api_version=(2, 5, 0) to skip auto check_version requests on startup
2025-04-04 19:44:30,690 - WARNING - group_id is None: disabling auto-commit.
2025-04-04 19:44:30,690 - INFO - Updating subscribed topics to: ('cameralist',)
2025-04-04 19:44:30,690 - INFO - subscribe Kafka topic : cameralist success!
2025-04-04 19:44:30,696 - INFO - Updated partition assignment: [TopicPartition(topic='cameralist', partition=0)]
2025-04-04 19:44:30,696 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 19:44:30,797 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Connection complete.
2025-04-04 19:44:30,797 - INFO - <BrokerConnection node_id=bootstrap-0 host=192.168.0.78:9092 <connected> [IPv4 ('192.168.0.78', 9092)]>: Closing connection.
2025-04-04 19:44:34,701 - INFO - Exiting program, stopping all processes...
2025-04-04 19:44:34,741 - ERROR - Error stopping process top (PID: 37032): [Errno 1] Operation not permitted
2025-04-04 19:44:34,741 - INFO - Sent SIGTERM to process: top (PID: 39314)
2025-04-04 20:05:47,921 - INFO - parkwatch Program started
2025-04-04 20:05:47,925 - INFO - Successfully loaded process data from /home/pc1/Public/message_kafka/process_list.json
2025-04-04 20:05:47,928 - INFO - <BrokerConnection node_id=bootstrap-0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 20:05:47,928 - INFO - Probing node bootstrap-0 broker version
2025-04-04 20:05:47,930 - INFO - Waiting 14702.069914 seconds until the next cleanup task.
2025-04-04 20:05:47,933 - INFO - <BrokerConnection node_id=bootstrap-0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Connection complete.
2025-04-04 20:05:47,937 - ERROR - stop process {'program_path': 'gnome-terminal', 'commands': 'top -H', 'process_name': 'top'} faild: [Errno 1] Operation not permitted
2025-04-04 20:05:47,937 - INFO - start process : top -H
2025-04-04 20:05:48,043 - INFO - Broker version identified as 2.5.0
2025-04-04 20:05:48,043 - INFO - Set configuration api_version=(2, 5, 0) to skip auto check_version requests on startup
2025-04-04 20:05:48,044 - WARNING - group_id is None: disabling auto-commit.
2025-04-04 20:05:48,044 - INFO - Updating subscribed topics to: ('cameralist',)
2025-04-04 20:05:48,044 - INFO - subscribe Kafka topic : cameralist success!
2025-04-04 20:05:48,049 - INFO - Updated partition assignment: [TopicPartition(topic='cameralist', partition=0)]
2025-04-04 20:05:48,050 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 20:05:48,150 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Connection complete.
2025-04-04 20:05:48,150 - INFO - <BrokerConnection node_id=bootstrap-0 host=192.168.0.78:9092 <connected> [IPv4 ('192.168.0.78', 9092)]>: Closing connection.
2025-04-04 20:05:51,981 - INFO - Exiting program, stopping all processes...
2025-04-04 20:05:51,997 - ERROR - Error stopping process top (PID: 37032): [Errno 1] Operation not permitted
2025-04-04 20:05:52,006 - INFO - Sent SIGTERM to process: top (PID: 40301)
2025-04-04 20:49:04,081 - WARNING - Process top is not running, starting...
2025-04-04 20:49:04,082 - INFO - start process : top -H
2025-04-04 20:57:11,814 - WARNING - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connected> [IPv4 ('192.168.0.78', 9092)]> timed out after 305000 ms. Closing connection.
2025-04-04 20:57:11,815 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connected> [IPv4 ('192.168.0.78', 9092)]>: Closing connection. [Error 7] RequestTimedOutError: Request timed out after 305000 ms
2025-04-04 20:57:11,815 - WARNING - Node 0 connection failed -- refreshing metadata
2025-04-04 20:57:11,816 - ERROR - Fetch to node 0 failed: [Error 7] RequestTimedOutError: Request timed out after 305000 ms
2025-04-04 20:57:11,817 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 20:59:26,102 - ERROR - Connect attempt to <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]> returned error 110. Disconnecting.
2025-04-04 20:59:26,103 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Closing connection. KafkaConnectionError: 110 ETIMEDOUT
2025-04-04 20:59:26,103 - WARNING - Node 0 connection failed -- refreshing metadata
2025-04-04 20:59:26,104 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 21:01:41,270 - ERROR - Connect attempt to <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]> returned error 110. Disconnecting.
2025-04-04 21:01:41,270 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Closing connection. KafkaConnectionError: 110 ETIMEDOUT
2025-04-04 21:01:41,271 - WARNING - Node 0 connection failed -- refreshing metadata
2025-04-04 21:01:41,271 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 21:03:56,438 - ERROR - Connect attempt to <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]> returned error 110. Disconnecting.
2025-04-04 21:03:56,439 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Closing connection. KafkaConnectionError: 110 ETIMEDOUT
2025-04-04 21:03:56,439 - WARNING - Node 0 connection failed -- refreshing metadata
2025-04-04 21:03:56,440 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 21:06:11,607 - ERROR - Connect attempt to <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]> returned error 110. Disconnecting.
2025-04-04 21:06:11,607 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Closing connection. KafkaConnectionError: 110 ETIMEDOUT
2025-04-04 21:06:11,607 - WARNING - Node 0 connection failed -- refreshing metadata
2025-04-04 21:06:11,608 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 21:08:26,774 - ERROR - Connect attempt to <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]> returned error 110. Disconnecting.
2025-04-04 21:08:26,775 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Closing connection. KafkaConnectionError: 110 ETIMEDOUT
2025-04-04 21:08:26,775 - WARNING - Node 0 connection failed -- refreshing metadata
2025-04-04 21:08:26,776 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 21:10:41,942 - ERROR - Connect attempt to <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]> returned error 110. Disconnecting.
2025-04-04 21:10:41,943 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Closing connection. KafkaConnectionError: 110 ETIMEDOUT
2025-04-04 21:10:41,943 - WARNING - Node 0 connection failed -- refreshing metadata
2025-04-04 21:10:41,944 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 21:12:57,110 - ERROR - Connect attempt to <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]> returned error 110. Disconnecting.
2025-04-04 21:12:57,110 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Closing connection. KafkaConnectionError: 110 ETIMEDOUT
2025-04-04 21:12:57,110 - WARNING - Node 0 connection failed -- refreshing metadata
2025-04-04 21:12:57,111 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 21:15:12,278 - ERROR - Connect attempt to <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]> returned error 110. Disconnecting.
2025-04-04 21:15:12,279 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Closing connection. KafkaConnectionError: 110 ETIMEDOUT
2025-04-04 21:15:12,280 - WARNING - Node 0 connection failed -- refreshing metadata
2025-04-04 21:15:12,280 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 21:17:27,446 - ERROR - Connect attempt to <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]> returned error 110. Disconnecting.
2025-04-04 21:17:27,447 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Closing connection. KafkaConnectionError: 110 ETIMEDOUT
2025-04-04 21:17:27,447 - WARNING - Node 0 connection failed -- refreshing metadata
2025-04-04 21:17:27,448 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 21:19:42,614 - ERROR - Connect attempt to <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]> returned error 110. Disconnecting.
2025-04-04 21:19:42,615 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Closing connection. KafkaConnectionError: 110 ETIMEDOUT
2025-04-04 21:19:42,615 - WARNING - Node 0 connection failed -- refreshing metadata
2025-04-04 21:19:42,616 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 21:21:57,782 - ERROR - Connect attempt to <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]> returned error 110. Disconnecting.
2025-04-04 21:21:57,783 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Closing connection. KafkaConnectionError: 110 ETIMEDOUT
2025-04-04 21:21:57,783 - WARNING - Node 0 connection failed -- refreshing metadata
2025-04-04 21:21:57,784 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 21:24:12,950 - ERROR - Connect attempt to <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]> returned error 110. Disconnecting.
2025-04-04 21:24:12,951 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Closing connection. KafkaConnectionError: 110 ETIMEDOUT
2025-04-04 21:24:12,951 - WARNING - Node 0 connection failed -- refreshing metadata
2025-04-04 21:24:12,952 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 21:25:35,830 - INFO - parkwatch Program started
2025-04-04 21:25:35,834 - INFO - Successfully loaded process data from /home/pc1/Public/message_kafka/process_list.json
2025-04-04 21:25:35,837 - INFO - Waiting 9914.162645 seconds until the next cleanup task.
2025-04-04 21:25:35,838 - INFO - <BrokerConnection node_id=bootstrap-0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 21:25:35,838 - INFO - Probing node bootstrap-0 broker version
2025-04-04 21:25:35,845 - INFO - stop success {'program_path': 'gnome-terminal', 'commands': 'top -H', 'process_name': 'top'} (PID: 42122)
2025-04-04 21:25:35,846 - INFO - start process : top -H
2025-04-04 21:25:59,524 - INFO - parkwatch Program started
2025-04-04 21:25:59,528 - INFO - Successfully loaded process data from /home/pc1/Public/message_kafka/process_list.json
2025-04-04 21:26:06,899 - INFO - Waiting 9883.100364 seconds until the next cleanup task.
2025-04-04 21:26:28,118 - ERROR - Connect attempt to <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]> returned error 110. Disconnecting.
2025-04-04 21:26:28,118 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Closing connection. KafkaConnectionError: 110 ETIMEDOUT
2025-04-04 21:26:28,118 - WARNING - Node 0 connection failed -- refreshing metadata
2025-04-04 21:26:28,119 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: connecting to 192.168.0.78:9092 [('192.168.0.78', 9092) IPv4]
2025-04-04 21:26:28,124 - INFO - <BrokerConnection node_id=0 host=192.168.0.78:9092 <connecting> [IPv4 ('192.168.0.78', 9092)]>: Connection complete.
2025-04-04 21:26:40,266 - INFO - subscribe Kafka topic : cameralist success!
2025-04-04 21:26:40,284 - INFO - stop success {'program_path': 'gnome-terminal', 'commands': 'top -H', 'process_name': 'top'} (PID: 44577)
2025-04-04 21:26:40,285 - ERROR - stop process {'program_path': 'gnome-terminal', 'commands': 'top -H', 'process_name': 'top'} faild: [Errno 1] Operation not permitted
2025-04-04 21:26:40,286 - INFO - start process : top -H
2025-04-04 21:26:52,970 - INFO - parkwatch Program started
2025-04-04 21:26:52,974 - INFO - Successfully loaded process data from /home/pc1/Public/message_kafka/process_list.json
2025-04-04 21:26:52,983 - INFO - Waiting 9837.016993 seconds until the next cleanup task.
2025-04-04 21:26:52,993 - ERROR - stop process {'program_path': 'gnome-terminal', 'commands': 'top -H', 'process_name': 'top'} faild: [Errno 1] Operation not permitted
2025-04-04 21:26:52,994 - INFO - stop success {'program_path': 'gnome-terminal', 'commands': 'top -H', 'process_name': 'top'} (PID: 44849)
2025-04-04 21:26:52,995 - INFO - start process : top -H
2025-04-04 21:26:53,099 - INFO - subscribe Kafka topic : cameralist success!
2025-04-04 21:33:38,528 - INFO - Exiting program, stopping all processes...
2025-04-04 21:33:38,539 - ERROR - Error stopping process top (PID: 44641): [Errno 1] Operation not permitted
2025-04-04 21:33:38,539 - INFO - Sent SIGTERM to process: top (PID: 44974)
2025-04-04 21:33:38,792 - INFO - Exiting program, stopping all processes...
2025-04-04 21:33:38,831 - ERROR - Error stopping process top (PID: 44641): [Errno 1] Operation not permitted
2025-04-04 21:34:23,995 - INFO - parkwatch Program started
2025-04-04 21:34:23,999 - INFO - Successfully loaded process data from /home/pc1/Public/message_kafka/process_list.json
2025-04-04 21:34:24,010 - INFO - Waiting 9385.989625 seconds until the next cleanup task.
2025-04-04 21:34:24,023 - INFO - start process : top -H
2025-04-04 21:34:24,037 - INFO - start process : top -H
2025-04-04 21:34:24,124 - INFO - subscribe Kafka topic : cameralist success!
2025-04-04 21:34:49,743 - INFO - parkwatch Program started
2025-04-04 21:34:49,746 - INFO - Successfully loaded process data from /home/pc1/Public/message_kafka/process_list.json
2025-04-04 21:34:49,751 - INFO - Waiting 9360.248999 seconds until the next cleanup task.
2025-04-04 21:34:49,761 - INFO - start process : top -H
2025-04-04 21:34:49,774 - INFO - start process : top -H
2025-04-04 21:34:49,865 - INFO - subscribe Kafka topic : cameralist success!
2025-04-04 21:34:59,820 - INFO - start process : top -H
2025-04-04 21:35:09,865 - INFO - start process : top -H
2025-04-04 21:35:14,671 - INFO - Exiting program, stopping all processes...
2025-04-04 21:35:19,450 - INFO - parkwatch Program started
2025-04-04 21:35:19,453 - INFO - Successfully loaded process data from /home/pc1/Public/message_kafka/process_list.json
2025-04-04 21:35:19,458 - INFO - Waiting 9330.541146 seconds until the next cleanup task.
2025-04-04 21:35:19,467 - INFO - start process : top -H
2025-04-04 21:35:19,479 - INFO - start process : top -H
2025-04-04 21:35:19,572 - INFO - subscribe Kafka topic : cameralist success!
2025-04-04 21:35:22,089 - INFO - Exiting program, stopping all processes...
2025-04-04 21:35:22,125 - INFO - Sent SIGTERM to process: top (PID: 45753)
2025-04-04 21:35:23,127 - INFO - Sent SIGTERM to process: top (PID: 45754)
2025-04-04 21:36:15,996 - INFO - parkwatch Program started
2025-04-04 21:36:16,000 - INFO - Successfully loaded process data from /home/pc1/Public/message_kafka/process_list.json
2025-04-04 21:36:16,004 - INFO - Waiting 9273.995299 seconds until the next cleanup task.
2025-04-04 21:36:16,014 - INFO - start process : top -H
2025-04-04 21:36:16,116 - INFO - subscribe Kafka topic : cameralist success!
2025-04-04 21:36:24,885 - INFO - Exiting program, stopping all processes...
2025-04-04 21:36:24,923 - INFO - Sent SIGTERM to process: top (PID: 45856)
2025-04-04 21:36:28,949 - INFO - parkwatch Program started
2025-04-04 21:36:28,952 - INFO - Successfully loaded process data from /home/pc1/Public/message_kafka/process_list.json
2025-04-04 21:36:28,956 - INFO - Waiting 9261.043771 seconds until the next cleanup task.
2025-04-04 21:36:28,965 - INFO - start process : top -H
2025-04-04 21:36:29,070 - INFO - subscribe Kafka topic : cameralist success!
2025-04-04 21:36:30,837 - INFO - Exiting program, stopping all processes...
2025-04-04 21:36:30,879 - INFO - Sent SIGTERM to process: top (PID: 45927)
2025-04-04 21:37:15,823 - INFO - parkwatch Program started
2025-04-04 21:37:15,826 - INFO - Successfully loaded process data from /home/pc1/Public/message_kafka/process_list.json
2025-04-04 21:37:15,830 - INFO - Waiting 9214.169995 seconds until the next cleanup task.
2025-04-04 21:37:15,949 - INFO - subscribe Kafka topic : cameralist success!
2025-04-04 21:37:25,890 - INFO - Exiting program, stopping all processes...
2025-04-04 21:37:25,906 - INFO - Sent SIGTERM to process: top (PID: 46020)
2025-04-04 21:42:27,602 - WARNING - Process top is not running, starting...
2025-04-04 21:42:27,603 - INFO - start process : top -H
2025-04-04 21:42:47,699 - WARNING - Process top is not running, starting...
2025-04-04 21:42:47,700 - INFO - start process : top -H
2025-04-04 21:44:05,865 - INFO - parkwatch Program started
2025-04-04 21:44:05,868 - INFO - Successfully loaded process data from /home/pc1/Public/message_kafka/process_list.json
2025-04-04 21:44:05,884 - INFO - Waiting 8804.11604 seconds until the next cleanup task.
2025-04-04 21:44:27,115 - INFO - parkwatch Program started
2025-04-04 21:44:27,119 - INFO - Successfully loaded process data from /home/pc1/Public/message_kafka/process_list.json
2025-04-04 21:44:27,129 - INFO - Waiting 8782.870118 seconds until the next cleanup task.
2025-04-04 21:44:27,250 - INFO - subscribe Kafka topic : cameralist success!
2025-04-04 21:48:37,792 - INFO - parkwatch Program started
2025-04-04 21:48:37,797 - INFO - Successfully loaded process data from /home/pc1/Public/message_kafka/process_list.json
2025-04-04 21:48:37,806 - INFO - Waiting 8532.193097 seconds until the next cleanup task.
2025-04-04 21:48:37,933 - INFO - subscribe Kafka topic : cameralist success!
2025-04-04 21:49:14,695 - INFO - parkwatch Program started
2025-04-04 21:49:14,698 - INFO - Successfully loaded process data from /home/pc1/Public/message_kafka/process_list.json
2025-04-04 21:49:14,702 - INFO - Waiting 8495.297645 seconds until the next cleanup task.
2025-04-04 21:49:14,713 - INFO - start process : top -H
2025-04-04 21:49:14,815 - INFO - subscribe Kafka topic : cameralist success!
2025-04-04 21:49:17,708 - INFO - Exiting program, stopping all processes...
2025-04-04 21:49:17,748 - INFO - Sent SIGTERM to process: top (PID: 47992)
2025-04-04 21:52:20,207 - WARNING - Process top is not running, starting...
2025-04-04 21:52:20,208 - INFO - start process : top -H
2025-04-04 23:40:20,345 - INFO - Exiting program, stopping all processes...
2025-04-04 23:40:20,363 - ERROR - Error stopping process top (PID: 48951): [Errno 1] Operation not permitted
parkwatch_start.sh
New file
@@ -0,0 +1,3 @@
#!/bin/bash
/home/pc1/Public/kafka_samples/main --config /home/pc1/Public/kafka_samples/msg_config.ini &
echo $! > /home/pc1/parkwatch.pid
parkwatch_stop.sh
New file
@@ -0,0 +1,15 @@
#!/bin/bash
if [ -f /home/pc1/parkwatch.pid ]; then
    PID=$(cat /home/pc1/parkwatch.pid)
    if ps -p $PID > /dev/null; then
        kill $PID
        echo "Parwatch process ($PID) stopped successfully."
    else
        echo "No running parkwatch process found with PID $PID."
    fi
    rm -f /home/pc1/parkwatch.pid
else
    echo "PID file not found. Is parkwatch running?"
fi
readme.txt
New file
@@ -0,0 +1,46 @@
1. ä¸»ç¨‹åºmain, è¯»å–主程序所在目录下配置文件msg_config.ini
2. msg_config.ini文件中需配置:PROCESSES下的监听进程定义的文件路径
3. ç¨‹åºä¸»è¦é€»è¾‘如下:
    a. è¯»å–msg_config.ini
    b. è¯»å–kafka配置,并连接server和订阅TRANSFER下的消息
    c. è¯»å–PROCESSES指定的进程监测文件,并检测,每固定时间检测进程是否正常,非启动状态会进行启动
4. deploy commands: pyinstaller --onefile --noconsole main.py
msg_config内容示例如下:
[KAFKA]
server = 192.168.0.79:9092
topics = vp_ba_jam, vp_ba_stop, vp_ba_crossline, vp_tracking
public_topic = vp_ba_result
[OUTPUT]
file = kafka_messages.txt
[TRANSFER]
topic_1 = cameralist
channel_size = 12
actions = JAM,STOP,WRONG_WAY,CROWD_GATHERING,PERSON_FALLDOWN,FIRE
outfile = textjson/config.json
full_actions = JAM,STOP,WRONG_WAY,CROWD_GATHERING,PERSON_FALLDOWN,FIRE,JUNK_STACK,SMOCKING,BARRIER_GATE
[PROCESSES]
process_file = textjson/process_list.json
[SEND_MSG]
run_send = true
send_topics = cameralist
send_interval = 300
json_file = textjson/cameralist.json
process_list配置文件示例如下:
{
    "process_list": [
        {"program_path": "gnome-terminal", "commands": "top -d 1", "process_name": "top0"},
        {"program_path": "gnome-terminal", "commands": "top -p 1234", "process_name": "top1"},
        {"program_path": "gnome-terminal", "commands": "top -u wr", "process_name": "top2"},
        {"program_path": "gnome-terminal", "commands": "top -H", "process_name": "top3"}
    ],
    "interval_monitor_seconds": 10
}
requirements.txt
New file
@@ -0,0 +1,81 @@
altgraph==0.17.4
build==1.2.2.post1
certifi==2025.1.31
cffi==1.17.1
charset-normalizer==3.4.1
coloredlogs==15.0.1
contourpy==1.3.1
cycler==0.12.1
filelock==3.17.0
flatbuffers==25.2.10
fonttools==4.55.8
fsspec==2025.2.0
humanfriendly==10.0
idna==3.10
Jinja2==3.1.5
kafka==1.3.5
kafka-python==2.0.2
kiwisolver==1.4.8
loguru==0.7.3
markdown-it-py==3.0.0
MarkupSafe==3.0.2
matplotlib==3.10.0
mdurl==0.1.2
mpmath==1.3.0
networkx==3.4.2
numpy==2.1.1
nvidia-cublas-cu12==12.4.5.8
nvidia-cuda-cupti-cu12==12.4.127
nvidia-cuda-nvrtc-cu12==12.4.127
nvidia-cuda-runtime-cu12==12.4.127
nvidia-cudnn-cu12==9.1.0.70
nvidia-cufft-cu12==11.2.1.3
nvidia-curand-cu12==10.3.5.147
nvidia-cusolver-cu12==11.6.1.9
nvidia-cusparse-cu12==12.3.1.170
nvidia-cusparselt-cu12==0.6.2
nvidia-nccl-cu12==2.21.5
nvidia-nvjitlink-cu12==12.4.127
nvidia-nvtx-cu12==12.4.127
onnx==1.17.0
onnxruntime-gpu==1.20.1
onnxslim==0.1.48
opencv-python==4.11.0.86
OpenTimelineIO==0.17.0
packaging==24.2
pandas==2.2.3
pillow==11.1.0
protobuf==5.29.3
psutil==7.0.0
py-cpuinfo==9.0.0
pybind11==2.13.6
pybind11_global==2.13.6
pycparser==2.22
Pygments==2.19.1
pyinstaller==6.11.1
pyinstaller-hooks-contrib==2024.10
pyparsing==3.2.3
pyproject_hooks==1.2.0
python-dateutil==2.9.0.post0
PyYAML==6.0.2
requests==2.32.3
rich==13.9.4
rich-click==1.8.5
schedule==1.2.2
scipy==1.15.1
seaborn==0.13.2
srt==3.5.3
sympy==1.13.1
tensorrt_yolo==4.3.1
tomli==2.2.1
torch==2.6.0
torchvision==0.21.0
tqdm==4.67.1
triton==3.2.0
typing_extensions==4.12.2
tzdata==2025.1
ultralytics==8.3.73
ultralytics-thop==2.0.14
urllib3==2.3.0
vosk==0.3.45
websockets==15.0.1
result.txt
New file
@@ -0,0 +1,49 @@
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 9 true (520,92),(712,80),(1264,488),(338,700)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/201 0.5 172.18.0.247:9092 3 10 true (560,100),(692,108),(880,698),(40,676)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/401 0.5 172.18.0.247:9092 3 12 true (496,80),(706,80),(1016,626),(160,672)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/701 0.5 172.18.0.247:9092 3 15 true (548,154),(692,144),(1080,700),(252,684)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/801 0.5 172.18.0.247:9092 3 16 true (560,114),(708,136),(1024,674),(168,658)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1101 0.5 172.18.0.247:9092 3 19 true (554,128),(772,112),(1226,692),(264,700)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1201 0.5 172.18.0.247:9092 3 20 true (564,122),(704,128),(1080,708),(210,716)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1401 0.5 172.18.0.247:9092 3 22 true (578,122),(804,138),(1154,700),(100,698)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1501 0.5 172.18.0.247:9092 3 23 true (586,100),(714,98),(1168,684),(258,700)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1701 0.5 172.18.0.247:9092 3 25 true (530,76),(816,90),(1256,684),(18,700)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2401 0.5 172.18.0.247:9092 3 32 true (554,68),(708,50),(1074,696),(260,688)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2601 0.5 172.18.0.247:9092 3 34 true (560,154),(720,144),(1164,688),(120,696)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2801 0.5 172.18.0.247:9092 3 36 true (524,80),(800,76),(1266,642),(52,634)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/3201 0.5 172.18.0.247:9092 3 40 true (584,56),(700,48),(1154,706),(280,704)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/201 0.5 172.18.0.247:9092 3 42 true (560,112),(680,92),(1106,704),(224,704)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/401 0.5 172.18.0.247:9092 3 44 true (490,104),(730,84),(1210,716),(60,692)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/701 0.5 172.18.0.247:9092 3 47 true (536,64),(730,68),(1266,626),(58,692)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/901 0.5 172.18.0.247:9092 3 49 true (544,52),(690,44),(1088,698),(44,704)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1301 0.5 172.18.0.247:9092 3 53 true (588,84),(728,84),(1250,680),(132,696)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1601 0.5 172.18.0.247:9092 3 56 true (554,76),(732,64),(1188,698),(92,692)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1801 0.5 172.18.0.247:9092 3 58 true (560,50),(684,42),(1042,700),(84,700)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1901 0.5 172.18.0.247:9092 3 59 true (554,100),(770,106),(1192,700),(18,704)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2301 0.5 172.18.0.247:9092 3 63 true (538,52),(716,56),(1122,704),(84,712)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2401 0.5 172.18.0.247:9092 3 64 true (482,48),(816,40),(1266,684),(2,688)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2501 0.5 172.18.0.247:9092 3 65 true (554,104),(698,80),(1266,700),(74,696)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2601 0.5 172.18.0.247:9092 3 66 true (514,10),(684,20),(1260,452),(10,620)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2701 0.5 172.18.0.247:9092 3 67 true (444,84),(786,68),(1264,500),(8,698)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2801 0.5 172.18.0.247:9092 3 68 true (412,120),(700,114),(1210,698),(20,706)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2901 0.5 172.18.0.247:9092 3 69 true (328,120),(1168,252),(1256,698),(18,690)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/3101 0.5 172.18.0.247:9092 3 71 true (524,72),(660,64),(1156,692),(52,704)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 73 true (580,68),(696,64),(1268,642),(400,712)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/301 0.5 172.18.0.247:9092 3 75 true (532,60),(676,56),(890,708),(2,578)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/501 0.5 172.18.0.247:9092 3 77 true (520,76),(696,98),(1140,698),(88,706)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/601 0.5 172.18.0.247:9092 3 78 true (410,60),(1082,128),(1276,356),(4,700)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/701 0.5 172.18.0.247:9092 3 79 true (496,106),(820,112),(1042,688),(4,256)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/801 0.5 172.18.0.247:9092 3 80 true (508,48),(666,32),(1266,530),(194,554)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/901 0.5 172.18.0.247:9092 3 81 true (626,106),(836,122),(1194,714),(132,684)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1201 0.5 172.18.0.247:9092 3 84 true (604,48),(730,44),(1162,706),(74,704)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1401 0.5 172.18.0.247:9092 3 86 true (576,72),(736,76),(1148,690),(82,692)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1501 0.5 172.18.0.247:9092 3 87 true (568,98),(832,84),(1264,544),(122,690)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1601 0.5 172.18.0.247:9092 3 88 true (650,64),(1024,68),(1268,712),(10,288)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1901 0.5 172.18.0.247:9092 3 120 true (480,10),(664,18),(1242,708),(122,690)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 122 true (576,80),(706,76),(1098,708),(168,688)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/401 0.5 172.18.0.247:9092 3 125 true (416,112),(736,114),(1250,700),(10,612)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/601 0.5 172.18.0.247:9092 3 127 true (474,92),(706,84),(1058,706),(12,452)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/801 0.5 172.18.0.247:9092 3 129 true (466,90),(802,84),(1274,474),(168,668)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/901 0.5 172.18.0.247:9092 3 130 true (300,114),(740,148),(1210,698),(10,692)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/1001 0.5 172.18.0.247:9092 3 131 true (490,98),(900,112),(1106,698),(12,364)
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/1101 0.5 172.18.0.247:9092 3 132 true (664,42),(866,50),(1188,666),(90,684)
temp.txt
New file
@@ -0,0 +1,49 @@
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 9 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/201 0.5 172.18.0.247:9092 3 10 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/401 0.5 172.18.0.247:9092 3 12 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/701 0.5 172.18.0.247:9092 3 15 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/801 0.5 172.18.0.247:9092 3 16 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1101 0.5 172.18.0.247:9092 3 19 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1201 0.5 172.18.0.247:9092 3 20 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1401 0.5 172.18.0.247:9092 3 22 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1501 0.5 172.18.0.247:9092 3 23 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1701 0.5 172.18.0.247:9092 3 25 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2401 0.5 172.18.0.247:9092 3 32 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2601 0.5 172.18.0.247:9092 3 34 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2801 0.5 172.18.0.247:9092 3 36 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/3201 0.5 172.18.0.247:9092 3 40 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/201 0.5 172.18.0.247:9092 3 42 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/401 0.5 172.18.0.247:9092 3 44 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/701 0.5 172.18.0.247:9092 3 47 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/901 0.5 172.18.0.247:9092 3 49 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1301 0.5 172.18.0.247:9092 3 53 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1601 0.5 172.18.0.247:9092 3 56 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1801 0.5 172.18.0.247:9092 3 58 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1901 0.5 172.18.0.247:9092 3 59 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2301 0.5 172.18.0.247:9092 3 63 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2401 0.5 172.18.0.247:9092 3 64 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2501 0.5 172.18.0.247:9092 3 65 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2601 0.5 172.18.0.247:9092 3 66 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2701 0.5 172.18.0.247:9092 3 67 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2801 0.5 172.18.0.247:9092 3 68 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2901 0.5 172.18.0.247:9092 3 69 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/3101 0.5 172.18.0.247:9092 3 71 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 73 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/301 0.5 172.18.0.247:9092 3 75 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/501 0.5 172.18.0.247:9092 3 77 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/601 0.5 172.18.0.247:9092 3 78 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/701 0.5 172.18.0.247:9092 3 79 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/801 0.5 172.18.0.247:9092 3 80 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/901 0.5 172.18.0.247:9092 3 81 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1201 0.5 172.18.0.247:9092 3 84 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1401 0.5 172.18.0.247:9092 3 86 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1501 0.5 172.18.0.247:9092 3 87 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1601 0.5 172.18.0.247:9092 3 88 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1901 0.5 172.18.0.247:9092 3 120 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/101 0.5 172.18.0.247:9092 3 122 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/401 0.5 172.18.0.247:9092 3 125 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/601 0.5 172.18.0.247:9092 3 127 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/801 0.5 172.18.0.247:9092 3 129 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/901 0.5 172.18.0.247:9092 3 130 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/1001 0.5 172.18.0.247:9092 3 131 true
rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/1101 0.5 172.18.0.247:9092 3 132 true
test2.py
New file
@@ -0,0 +1,38 @@
import os
from kafka import KafkaConsumer
import configparser
# é…ç½®æ–‡ä»¶è·¯å¾„
config_file = os.path.join(os.getcwd(), 'msg_config.ini')
# è¯»å–配置文件
config = configparser.ConfigParser()
config.read(config_file)
# ä»Žé…ç½®æ–‡ä»¶ä¸­èŽ·å– Kafka å‚数和输出文件路径
KAFKA_SERVER = config['KAFKA']['server']
TOPIC = config['KAFKA']['topics'].split(', ')
output_file = os.path.join(os.getcwd(), config['OUTPUT']['file'])
print(f"Kafka æœåŠ¡å™¨åœ°å€: {KAFKA_SERVER}")
print(f"消费的主题: {TOPIC}")
print(f"输出文件路径: {output_file}")
# åˆ›å»º KafkaConsumer å®žä¾‹
consumer = KafkaConsumer(
    *TOPIC,
    bootstrap_servers=[KAFKA_SERVER],
    group_id='test_group',
    value_deserializer=lambda x: x.decode('utf-8')
)
# æ‰“开文件以追加写入
with open(output_file, 'a', encoding='utf-8') as f:
    for message in consumer:
        topic = message.topic
        value = message.value
        f.write(f"Topic: {topic}, Message: {value}\n")
        f.flush()
        print(f"接收到消息: Topic: {topic}, Message: {value}")
test2.spec
New file
@@ -0,0 +1,38 @@
# -*- mode: python ; coding: utf-8 -*-
a = Analysis(
    ['test2.py'],
    pathex=[],
    binaries=[],
    datas=[],
    hiddenimports=[],
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=[],
    noarchive=False,
    optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
    pyz,
    a.scripts,
    a.binaries,
    a.datas,
    [],
    name='test2',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
    upx_exclude=[],
    runtime_tmpdir=None,
    console=True,
    disable_windowed_traceback=False,
    argv_emulation=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,
)
test3.py
New file
@@ -0,0 +1,38 @@
import os
from kafka import KafkaConsumer
import configparser
# é…ç½®æ–‡ä»¶è·¯å¾„
config_file = os.path.join(os.getcwd(), 'msg_config.ini')
# è¯»å–配置文件
config = configparser.ConfigParser()
config.read(config_file)
# ä»Žé…ç½®æ–‡ä»¶ä¸­èŽ·å– Kafka å‚数和输出文件路径
KAFKA_SERVER = config['KAFKA']['server']
TOPIC = config['KAFKA']['topics'].split(', ')
output_file = os.path.join(os.getcwd(), config['OUTPUT']['file'])
print(f"Kafka æœåŠ¡å™¨åœ°å€: {KAFKA_SERVER}")
print(f"消费的主题: {TOPIC}")
print(f"输出文件路径: {output_file}")
# åˆ›å»º KafkaConsumer å®žä¾‹
consumer = KafkaConsumer(
    *TOPIC,
    bootstrap_servers=[KAFKA_SERVER],
    group_id='test_group',
    value_deserializer=lambda x: x.decode('utf-8')
)
# æ‰“开文件以追加写入
with open(output_file, 'a', encoding='utf-8') as f:
    for message in consumer:
        topic = message.topic
        value = message.value
        f.write(f"Topic: {topic}, Message: {value}\n")
        f.flush()
        print(f"接收到消息: Topic: {topic}, Message: {value}")
test_kfk_mst_2_config.spec
New file
@@ -0,0 +1,38 @@
# -*- mode: python ; coding: utf-8 -*-
a = Analysis(
    ['test_kfk_mst_2_config.py'],
    pathex=[],
    binaries=[],
    datas=[],
    hiddenimports=[],
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=[],
    noarchive=False,
    optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
    pyz,
    a.scripts,
    a.binaries,
    a.datas,
    [],
    name='test_kfk_mst_2_config',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
    upx_exclude=[],
    runtime_tmpdir=None,
    console=True,
    disable_windowed_traceback=False,
    argv_emulation=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,
)
test_process_list.py
New file
@@ -0,0 +1,148 @@
import configparser
import json
import psutil
import subprocess
import time
import threading
import logging
import os
# è®¾ç½®æ—¥å¿—记录
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
logger = logging.getLogger(__name__)
def read_msg_config():
    """读取 msg_config.ini é…ç½®æ–‡ä»¶"""
    config = configparser.ConfigParser()
    if not os.path.exists('msg_config.ini'):
        logger.error("msg_config.ini æ–‡ä»¶ä¸å­˜åœ¨")
        raise FileNotFoundError("msg_config.ini æ–‡ä»¶ä¸å­˜åœ¨")
    config.read('msg_config.ini')
    try:
        kafka_server = config.get('KAFKA', 'server')
        kafka_topics = config.get('KAFKA', 'topics').split(', ')
        process_file = config.get('PROCESSES', 'process_file')
    except configparser.NoOptionError as e:
        logger.error(f"配置文件格式错误: {e}")
        raise
    return kafka_server, kafka_topics, process_file
def read_process_list(process_file):
    """读取 process_list.json é…ç½®æ–‡ä»¶"""
    if not os.path.exists(process_file):
        logger.error(f"{process_file} æ–‡ä»¶ä¸å­˜åœ¨")
        raise FileNotFoundError(f"{process_file} æ–‡ä»¶ä¸å­˜åœ¨")
    with open(process_file, 'r') as f:
        try:
            process_data = json.load(f)
        except json.JSONDecodeError as e:
            logger.error(f"JSON æ ¼å¼é”™è¯¯: {e}")
            raise
    return process_data
def stop_processes(prefixes):
    """停止符合进程名以任意prefix打头的进程"""
    for proc in psutil.process_iter(attrs=['pid', 'name']):
        try:
            # æ£€æŸ¥è¿›ç¨‹åæ˜¯å¦ä»¥ä»»ä½•一个prefix打头
            if any(proc.info['name'].lower().startswith(prefix.lower()) for prefix in prefixes):
                proc.kill()
                logger.info(f"Terminated process: {proc.info['name']} (PID: {proc.info['pid']})")
        except (psutil.NoSuchProcess, psutil.AccessDenied):
            continue
def start_process(proc):
    """启动单个进程"""
    program_path = proc.get('program_path')
    command_ = proc.get('commands')
    try:
        if program_path == "gnome-terminal":
            subprocess.Popen([program_path, '--', 'bash', '-c', command_])
        elif program_path == "xterm":
            subprocess.Popen([program_path, '-e', 'bash -c "' + command_ + '"'])
        elif program_path == "konsole":
            subprocess.Popen([program_path, '--hold', '-e', 'bash -c "' + command_ + '"'])
        else:
            subprocess.Popen([program_path, '-c', command_])
        logger.info(f"Started process: {command_}")
    except FileNotFoundError as e:
        logger.error(f"终端程序未找到: {e}")
    except Exception as e:
        logger.error(f"启动进程失败: {e}")
def start_processes_concurrently(process_list):
    """并行启动多个进程"""
    threads = []
    for proc in process_list:
        thread = threading.Thread(target=start_process, args=(proc,))
        threads.append(thread)
        thread.start()
    for thread in threads:
        thread.join()  # ç­‰å¾…所有线程完成
if __name__ == "__main__":
    # è¯»å–配置文件
    try:
        kafka_server, kafka_topics, process_file = read_msg_config()
        logger.info(f"KAFKA Server: {kafka_server}")
        logger.info(f"KAFKA Topics: {kafka_topics}")
    except Exception as e:
        logger.error(f"读取配置文件失败: {e}")
        exit(1)
    # è¯»å–进程清单
    try:
        process_data = read_process_list(process_file)
        process_names = process_data['process_names']
        process_list = process_data['process_list']
    except Exception as e:
        logger.error(f"读取进程列表失败: {e}")
        exit(1)
    # åœæ­¢ç¬¦åˆè¿›ç¨‹åçš„æ‰€æœ‰è¿›ç¨‹
    stop_processes(process_names)
    # å¯åŠ¨æ–°è¿›ç¨‹
    start_processes_concurrently(process_list)
'''
用python写一份程序,实现以下功能:
1. è¯»å–msg_config.ini文件,msg_config.ini文件内容如下:
[KAFKA]
server = 192.168.0.79:9092
topics = vp_ba_jam, vp_ba_stop, vp_ba_crossline, vp_tracking
[PROCESSES]
process_file = textjson/process_list.json
2. èŽ·å–process_file指定的文件路径,读取process_list.json文件内容,如下:
{
    "process_names": ["top", "mixc2", "mixc3"],
    "process_list": [
        {"program_path": "gnome-terminal", "commands": "top -d 1"},
        {"program_path": "gnome-terminal", "commands": "top -p 1234"},
        {"program_path": "gnome-terminal", "commands": "top -u wr"},
        {"program_path": "gnome-terminal", "commands": "top -H"}
    ]
}
3. è¯»å–process_names,停止符合进程名的所有进程;
4. åœæ­¢ä¸Šè¿°è¿›ç¨‹ä¹‹åŽ,读取process_list进程清单,并调起命令行终端启动process_list中的所有程序,每隔5秒启动一个,直到所有程序启动完毕;
'''
test_process_list.spec
New file
@@ -0,0 +1,38 @@
# -*- mode: python ; coding: utf-8 -*-
a = Analysis(
    ['test_process_list.py'],
    pathex=[],
    binaries=[],
    datas=[],
    hiddenimports=[],
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=[],
    noarchive=False,
    optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
    pyz,
    a.scripts,
    a.binaries,
    a.datas,
    [],
    name='test_process_list',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
    upx_exclude=[],
    runtime_tmpdir=None,
    console=True,
    disable_windowed_traceback=False,
    argv_emulation=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,
)
textjson/base.json
New file
@@ -0,0 +1,77 @@
{
    "version": "1.0",
    "show_screen": true,
    "show_board": false,
    "kafka_server": "192.168.0.85:9092",
    "kafka_topic": "vp_ba_result",
    "max_input_per_detection": 2,
    "channels": [
        {
            "id": "file_src_0",
            "url": "vp_data/test_video/jam.mp4",
            "source_type": "file",
            "resize_ratio": 0.5,
            "pix_width": 704,
            "pix_height": 576,
            "actions": [
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [40,720],[800,500],[1070,500],[1110,1120],[60,1110]
                        ]
                    ]
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "file_src_1",
            "url": "vp_data/test_video/fire.mp4",
            "source_type": "file",
            "resize_ratio": 0.5,
            "pix_width": 704,
            "pix_height": 576,
            "actions": [
                {
                    "action": "FIRE"
                }
            ]
        }
    ],
    "ba_jam_config": {
        "check_interval_frames": 20,
        "check_max_distance": 8,
        "check_min_hit_frames": 50,
        "check_min_stops": 8,
        "check_notify_interval": 10,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_stop_config": {
        "check_interval_frames": 20,
        "check_max_distance": 5,
        "check_min_hit_frames": 50,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_person_gathering_config": {
        "check_interval_frames": 1,
        "check_min_hit_frames": 1,
        "check_notify_interval": 10,
        "min_gathering_person": 3,
        "need_record_image": true,
        "need_record_video": true,
        "person_gathering_distance_factor": 4.0
    },
    "ba_wrong_direction_config": {
        "check_interval_frames": 5,
        "check_min_hit_frames": 25,
        "check_notify_interval": 10,
        "half_width": 320,
        "need_record_image": true,
        "need_record_video": true
    }
}
textjson/cameralist.json
New file
Diff too large
textjson/cameralist.json.bak
New file
@@ -0,0 +1 @@
{"version":"1.0","channels":[{"id":9,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/101","actions":[{"action":"STOP","regions":[["560","120"],["706","116"],["1188","698"],["114","700"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["520","92"],["712","80"],["1264","488"],["338","700"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":10,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/202","actions":[{"action":"STOP","regions":[["538","80"],["692","68"],["1268","476"],["364","700"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["560","100"],["692","108"],["880","698"],["40","676"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":11,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/301","actions":[{"action":"STOP","regions":[["512","144"],["706","138"],["844","688"],["28","706"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["512","144"],["706","138"],["844","688"],["28","706"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":12,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/401","actions":[{"action":"STOP","regions":[["496","80"],["706","80"],["1016","626"],["160","672"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["496","80"],["706","80"],["1016","626"],["160","672"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":13,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/501","actions":[{"action":"STOP","regions":[["448","148"],["692","128"],["972","684"],["18","684"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["448","148"],["692","128"],["972","684"],["18","684"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":14,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/601","actions":[{"action":"STOP","regions":[["600","76"],["716","84"],["1226","668"],["324","712"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["600","76"],["716","84"],["1226","668"],["324","712"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":15,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/701","actions":[{"action":"STOP","regions":[["548","154"],["692","144"],["1080","700"],["252","684"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["548","154"],["692","144"],["1080","700"],["252","684"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":16,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/801","actions":[{"action":"STOP","regions":[["560","114"],["708","136"],["1024","674"],["168","658"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["560","114"],["708","136"],["1024","674"],["168","658"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":17,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/901","actions":[{"action":"STOP","regions":[["530","98"],["730","96"],["1146","690"],["40","700"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["530","98"],["730","96"],["1146","690"],["40","700"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":18,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1001","actions":[{"action":"STOP","regions":[["592","114"],["700","112"],["1244","704"],["474","700"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["592","114"],["700","112"],["1244","704"],["474","700"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":19,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1101","actions":[{"action":"STOP","regions":[["554","128"],["772","112"],["1226","692"],["264","700"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["554","128"],["772","112"],["1226","692"],["264","700"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":20,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1201","actions":[{"action":"STOP","regions":[["564","122"],["704","128"],["1080","708"],["210","716"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["564","122"],["704","128"],["1080","708"],["210","716"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":21,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1301","actions":[{"action":"STOP","regions":[["594","98"],["690","96"],["1058","690"],["232","700"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["594","98"],["690","96"],["1058","690"],["232","700"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":22,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1401","actions":[{"action":"STOP","regions":[["578","122"],["804","138"],["1154","700"],["100","698"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["578","122"],["804","138"],["1154","700"],["100","698"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":23,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1501","actions":[{"action":"STOP","regions":[["586","100"],["714","98"],["1168","684"],["258","700"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["586","100"],["714","98"],["1168","684"],["258","700"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":24,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1601","actions":[{"action":"STOP","regions":[["520","92"],["642","76"],["906","688"],["18","698"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["520","92"],["642","76"],["906","688"],["18","698"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":25,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1701","actions":[{"action":"STOP","regions":[["530","76"],["816","90"],["1256","684"],["18","700"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["530","76"],["816","90"],["1256","684"],["18","700"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":26,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1801","actions":[{"action":"STOP","regions":[["552","72"],["696","76"],["940","714"],["64","698"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["552","72"],["696","76"],["940","714"],["64","698"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":27,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1901","actions":[],"pix_width":1280,"pix_height":720},{"id":28,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2001","actions":[],"pix_width":1280,"pix_height":720},{"id":29,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2101","actions":[],"pix_width":1280,"pix_height":720},{"id":30,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2201","actions":[{"action":"STOP","regions":[["554","64"],["652","60"],["1034","706"],["128","700"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["554","64"],["652","60"],["1034","706"],["128","700"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":31,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2301","actions":[{"action":"STOP","regions":[["546","64"],["664","52"],["1208","682"],["208","700"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["546","64"],["664","52"],["1208","682"],["208","700"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":32,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2401","actions":[{"action":"STOP","regions":[["554","68"],["708","50"],["1074","696"],["260","688"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["554","68"],["708","50"],["1074","696"],["260","688"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":33,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2501","actions":[{"action":"STOP","regions":[["560","90"],["676","84"],["1148","688"],["284","696"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["560","90"],["676","84"],["1148","688"],["284","696"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":34,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2601","actions":[{"action":"STOP","regions":[["560","154"],["720","144"],["1164","688"],["120","696"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["560","154"],["720","144"],["1164","688"],["120","696"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":35,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2701","actions":[{"action":"STOP","regions":[["508","106"],["704","84"],["1066","688"],["84","706"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["508","106"],["704","84"],["1066","688"],["84","706"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":36,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2801","actions":[{"action":"STOP","regions":[["524","80"],["800","76"],["1266","642"],["52","634"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["524","80"],["800","76"],["1266","642"],["52","634"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":37,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2901","actions":[{"action":"STOP","regions":[["522","56"],["720","60"],["1020","708"],["42","692"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["522","56"],["720","60"],["1020","708"],["42","692"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":38,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/3001","actions":[{"action":"STOP","regions":[["602","42"],["692","40"],["1130","698"],["322","704"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["602","42"],["692","40"],["1130","698"],["322","704"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":39,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/3101","actions":[{"action":"STOP","regions":[["530","68"],["668","72"],["992","700"],["120","704"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["530","68"],["668","72"],["992","700"],["120","704"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":40,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/3201","actions":[{"action":"STOP","regions":[["584","56"],["700","48"],["1154","706"],["280","704"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["584","56"],["700","48"],["1154","706"],["280","704"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":41,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/101","actions":[{"action":"STOP","regions":[["564","50"],["680","42"],["1016","700"],["68","700"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["564","50"],["680","42"],["1016","700"],["68","700"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":42,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/202","actions":[{"action":"STOP","regions":[["560","112"],["680","92"],["1106","704"],["224","704"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["560","112"],["680","92"],["1106","704"],["224","704"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":43,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/301","actions":[{"action":"STOP","regions":[["458","84"],["608","88"],["1258","698"],["232","698"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["458","84"],["608","88"],["1258","698"],["232","698"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":44,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/401","actions":[{"action":"STOP","regions":[["490","104"],["730","84"],["1210","716"],["60","692"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["490","104"],["730","84"],["1210","716"],["60","692"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":45,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/501","actions":[{"action":"STOP","regions":[["520","64"],["682","48"],["1242","668"],["148","682"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["520","64"],["682","48"],["1242","668"],["148","682"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":46,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/601","actions":[{"action":"STOP","regions":[["568","106"],["730","114"],["1160","680"],["234","672"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["568","106"],["730","114"],["1160","680"],["234","672"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":47,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/701","actions":[{"action":"STOP","regions":[["536","64"],["730","68"],["1266","626"],["58","692"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["536","64"],["730","68"],["1266","626"],["58","692"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":48,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/801","actions":[{"action":"STOP","regions":[["560","76"],["722","76"],["1148","704"],["18","642"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["560","76"],["722","76"],["1148","704"],["18","642"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":49,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/901","actions":[{"action":"STOP","regions":[["544","52"],["690","44"],["1088","698"],["44","704"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["544","52"],["690","44"],["1088","698"],["44","704"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":50,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1001","actions":[{"action":"STOP","regions":[["554","60"],["746","42"],["1064","700"],["10","684"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["554","60"],["746","42"],["1064","700"],["10","684"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":51,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1101","actions":[{"action":"STOP","regions":[["540","64"],["728","56"],["1264","498"],["258","684"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["540","64"],["728","56"],["1264","498"],["258","684"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":52,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1201","actions":[{"action":"STOP","regions":[["562","100"],["786","100"],["1258","648"],["82","692"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["562","100"],["786","100"],["1258","648"],["82","692"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":53,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1301","actions":[{"action":"STOP","regions":[["588","84"],["728","84"],["1250","680"],["132","696"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["588","84"],["728","84"],["1250","680"],["132","696"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":54,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1401","actions":[{"action":"STOP","regions":[["600","68"],["746","56"],["1144","712"],["12","698"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["600","68"],["746","56"],["1144","712"],["12","698"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":55,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1501","actions":[{"action":"STOP","regions":[["508","76"],["752","64"],["1258","596"],["192","698"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["508","76"],["752","64"],["1258","596"],["192","698"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":56,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1601","actions":[{"action":"STOP","regions":[["554","76"],["732","64"],["1188","698"],["92","692"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["554","76"],["732","64"],["1188","698"],["92","692"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":57,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1701","actions":[{"action":"STOP","regions":[["552","84"],["706","76"],["1194","692"],["132","700"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["552","84"],["706","76"],["1194","692"],["132","700"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":58,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1801","actions":[{"action":"STOP","regions":[["560","50"],["684","42"],["1042","700"],["84","700"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["560","50"],["684","42"],["1042","700"],["84","700"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":59,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1901","actions":[{"action":"STOP","regions":[["554","100"],["770","106"],["1192","700"],["18","704"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["554","100"],["770","106"],["1192","700"],["18","704"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":60,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2001","actions":[{"action":"STOP","regions":[["532","120"],["748","114"],["1180","684"],["124","700"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["532","120"],["748","114"],["1180","684"],["124","700"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":61,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2101","actions":[{"action":"STOP","regions":[["500","116"],["704","96"],["1276","436"],["560","698"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["500","116"],["704","96"],["1276","436"],["560","698"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":62,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2201","actions":[{"action":"STOP","regions":[["452","72"],["600","68"],["1240","706"],["50","698"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["452","72"],["600","68"],["1240","706"],["50","698"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":63,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2301","actions":[{"action":"STOP","regions":[["538","52"],["716","56"],["1122","704"],["84","712"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["538","52"],["716","56"],["1122","704"],["84","712"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":64,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2401","actions":[{"action":"STOP","regions":[["482","48"],["816","40"],["1266","684"],["2","688"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["482","48"],["816","40"],["1266","684"],["2","688"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":65,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2501","actions":[{"action":"STOP","regions":[["554","104"],["698","80"],["1266","700"],["74","696"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["554","104"],["698","80"],["1266","700"],["74","696"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":66,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2601","actions":[{"action":"STOP","regions":[["514","10"],["684","20"],["1260","452"],["10","620"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["514","10"],["684","20"],["1260","452"],["10","620"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":67,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2701","actions":[{"action":"STOP","regions":[["444","84"],["786","68"],["1264","500"],["8","698"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["444","84"],["786","68"],["1264","500"],["8","698"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":68,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2801","actions":[{"action":"STOP","regions":[["412","120"],["700","114"],["1210","698"],["20","706"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["412","120"],["700","114"],["1210","698"],["20","706"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":69,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2901","actions":[{"action":"STOP","regions":[["328","120"],["1168","252"],["1256","698"],["18","690"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["328","120"],["1168","252"],["1256","698"],["18","690"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":70,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/3001","actions":[{"action":"STOP","regions":[["554","32"],["772","48"],["1264","692"],["18","688"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["554","32"],["772","48"],["1264","692"],["18","688"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":71,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/3101","actions":[{"action":"STOP","regions":[["524","72"],["660","64"],["1156","692"],["52","704"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["524","72"],["660","64"],["1156","692"],["52","704"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":72,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/3201","actions":[{"action":"STOP","regions":[["554","84"],["700","80"],["1146","714"],["124","706"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["554","84"],["700","80"],["1146","714"],["124","706"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":73,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/101","actions":[{"action":"STOP","regions":[["580","68"],["696","64"],["1268","642"],["400","712"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["580","68"],["696","64"],["1268","642"],["400","712"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":74,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/202","actions":[{"action":"STOP","regions":[["664","84"],["808","80"],["1272","562"],["418","712"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["664","84"],["808","80"],["1272","562"],["418","712"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":75,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/301","actions":[{"action":"STOP","regions":[["532","60"],["676","56"],["890","708"],["2","578"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["532","60"],["676","56"],["890","708"],["2","578"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":76,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/401","actions":[{"action":"STOP","regions":[["562","84"],["720","84"],["1188","700"],["40","712"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["562","84"],["720","84"],["1188","700"],["40","712"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":77,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/501","actions":[{"action":"STOP","regions":[["520","76"],["696","98"],["1140","698"],["88","706"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["520","76"],["696","98"],["1140","698"],["88","706"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":78,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/601","actions":[{"action":"STOP","regions":[["410","60"],["1082","128"],["1276","356"],["4","700"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["410","60"],["1082","128"],["1276","356"],["4","700"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":79,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/701","actions":[{"action":"STOP","regions":[["496","106"],["820","112"],["1042","688"],["4","256"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["496","106"],["820","112"],["1042","688"],["4","256"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":80,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/801","actions":[{"action":"STOP","regions":[["508","48"],["666","32"],["1266","530"],["194","554"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["508","48"],["666","32"],["1266","530"],["194","554"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":81,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/901","actions":[{"action":"STOP","regions":[["626","106"],["836","122"],["1194","714"],["132","684"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["626","106"],["836","122"],["1194","714"],["132","684"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":82,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1001","actions":[{"action":"STOP","regions":[["504","90"],["682","96"],["994","714"],["10","684"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["504","90"],["682","96"],["994","714"],["10","684"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":83,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1101","actions":[{"action":"STOP","regions":[["634","68"],["808","100"],["644","704"],["8","410"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["634","68"],["808","100"],["644","704"],["8","410"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":84,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1201","actions":[{"action":"STOP","regions":[["604","48"],["730","44"],["1162","706"],["74","704"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["604","48"],["730","44"],["1162","706"],["74","704"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":85,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1301","actions":[{"action":"STOP","regions":[["656","50"],["772","60"],["1264","672"],["218","698"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["656","50"],["772","60"],["1264","672"],["218","698"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":86,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1401","actions":[{"action":"STOP","regions":[["576","72"],["736","76"],["1148","690"],["82","692"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["576","72"],["736","76"],["1148","690"],["82","692"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":87,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1501","actions":[{"action":"STOP","regions":[["568","98"],["832","84"],["1264","544"],["122","690"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["568","98"],["832","84"],["1264","544"],["122","690"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":88,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1601","actions":[{"action":"STOP","regions":[["650","64"],["1024","68"],["1268","712"],["10","288"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["650","64"],["1024","68"],["1268","712"],["10","288"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":118,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1701","actions":[{"action":"STOP","regions":[["560","136"],["730","128"],["1212","700"],["186","708"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["560","136"],["730","128"],["1212","700"],["186","708"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":119,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1801","actions":[{"action":"STOP","regions":[["586","72"],["728","68"],["1216","716"],["202","712"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["586","72"],["728","68"],["1216","716"],["202","712"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":120,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1901","actions":[{"action":"STOP","regions":[["480","10"],["664","18"],["1242","708"],["122","690"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["480","10"],["664","18"],["1242","708"],["122","690"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":121,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/2001","actions":[{"action":"STOP","regions":[["496","84"],["668","84"],["1172","714"],["120","698"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["496","84"],["668","84"],["1172","714"],["120","698"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":122,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/101","actions":[{"action":"STOP","regions":[["576","80"],["706","76"],["1098","708"],["168","688"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["576","80"],["706","76"],["1098","708"],["168","688"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":123,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/202","actions":[{"action":"STOP","regions":[["560","72"],["960","84"],["1236","712"],["20","634"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["560","72"],["960","84"],["1236","712"],["20","634"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":124,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/301","actions":[{"action":"STOP","regions":[["604","68"],["810","52"],["1272","572"],["12","610"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["604","68"],["810","52"],["1272","572"],["12","610"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":125,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/401","actions":[{"action":"STOP","regions":[["416","112"],["736","114"],["1250","700"],["10","612"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["416","112"],["736","114"],["1250","700"],["10","612"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":126,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/501","actions":[{"action":"STOP","regions":[["512","88"],["738","96"],["1260","516"],["80","712"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["512","88"],["738","96"],["1260","516"],["80","712"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":127,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/601","actions":[{"action":"STOP","regions":[["474","92"],["706","84"],["1058","706"],["12","452"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["474","92"],["706","84"],["1058","706"],["12","452"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":128,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/701","actions":[{"action":"STOP","regions":[["488","96"],["720","84"],["1066","692"],["0","552"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["488","96"],["720","84"],["1066","692"],["0","552"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":129,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/801","actions":[{"action":"STOP","regions":[["466","90"],["802","84"],["1274","474"],["168","668"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["466","90"],["802","84"],["1274","474"],["168","668"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":130,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/901","actions":[{"action":"STOP","regions":[["300","114"],["740","148"],["1210","698"],["10","692"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["300","114"],["740","148"],["1210","698"],["10","692"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FALL","frame_interval":10,"save_image":true,"save_video":true,"notify_interval":30},{"action":"JUNK_STACK","frame_interval":10,"save_image":true,"save_video":true},{"action":"CROWD_GATHERING","frame_interval":10,"save_image":true,"save_video":true},{"action":"FIRE","frame_interval":10,"save_image":true,"save_video":true},{"action":"BARRIER_GATE","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":131,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/1001","actions":[{"action":"STOP","regions":[["474","92"],["898","112"],["1108","714"],["8","428"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["490","98"],["900","112"],["1106","698"],["12","364"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720},{"id":132,"url":"rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/1101","actions":[{"action":"STOP","regions":[["610","122"],["886","92"],["1174","716"],["82","668"]],"frame_interval":10,"save_image":true,"save_video":true,"max_distance":3,"notify_interval":30},{"action":"JAM","regions":[["664","42"],["866","50"],["1188","666"],["90","684"]],"frame_interval":10,"save_image":true,"save_video":true,"min_stops":2,"max_distance":3,"notify_interval":30},{"action":"SMOCKING","frame_interval":10,"save_image":true,"save_video":true}],"pix_width":1280,"pix_height":720}]}
textjson/config.json
New file
@@ -0,0 +1,73 @@
{
    "version": "1.0",
    "show_screen": false,
    "show_board": true,
    "kafka_server": "192.168.0.79:9092",
    "kafka_topic": "vp_ba_result",
    "max_input_per_detection": 4,
    "channels": [
        {
            "id": "9",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/101",
            "source_type": "ffmpeg_rtsp",
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            "560",
                            "120"
                        ],
                        [
                            "706",
                            "116"
                        ],
                        [
                            "1188",
                            "698"
                        ],
                        [
                            "114",
                            "700"
                        ]
                    ],
                    "frame_interval": 10,
                    "save_image": true,
                    "save_video": true,
                    "max_distance": 3,
                    "notify_interval": 30
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            "520",
                            "92"
                        ],
                        [
                            "712",
                            "80"
                        ],
                        [
                            "1264",
                            "488"
                        ],
                        [
                            "338",
                            "700"
                        ]
                    ],
                    "frame_interval": 10,
                    "save_image": true,
                    "save_video": true,
                    "max_distance": 3,
                    "min_stops": 2,
                    "notify_interval": 30
                }
            ]
        }
    ]
}
textjson/focus_monitor_1.json
New file
@@ -0,0 +1,839 @@
{
    "version": "1.0",
    "show_screen": false,
    "show_board": false,
    "kafka_server": "192.168.0.78:9092",
    "kafka_topic": "vp_ba_result",
    "max_input_per_detection": 12,
    "ba_jam_config": {
        "check_interval_frames": 10,
        "check_max_distance": 150,
        "check_min_hit_frames": 5,
        "check_min_stops": 2,
        "check_notify_interval": 120,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_stop_config": {
        "check_interval_frames": 20,
        "check_max_distance": 100,
        "check_min_hit_frames": 120,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_person_gathering_config": {
        "check_interval_frames": 20,
        "check_min_hit_frames": 8,
        "check_notify_interval": 60,
        "person_gathering_distance_factor": 4,
        "min_gathering_person": 5,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_person_fall_down_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 20,
        "check_notify_interval": 60,
        "person_fall_down_threshold": 0.5,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_wrong_direction_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 5,
        "check_notify_interval": 60,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_barrier_gate_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 3,
        "check_notify_interval": 1,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_fire_smoke_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 5,
        "check_notify_interval": 60,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_junk_stack_config": {
        "check_interval_frames": 200,
        "check_min_hit_frames": 5,
        "check_notify_interval": 600,
        "need_record_image": true,
        "need_record_video": true
    },
    "channels": [
        {
            "id": "9",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/101",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                560,
                                120
                            ],
                            [
                                706,
                                116
                            ],
                            [
                                1188,
                                698
                            ],
                            [
                                114,
                                700
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                520,
                                92
                            ],
                            [
                                712,
                                80
                            ],
                            [
                                1264,
                                488
                            ],
                            [
                                338,
                                700
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "10",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/202",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                538,
                                80
                            ],
                            [
                                692,
                                68
                            ],
                            [
                                1268,
                                476
                            ],
                            [
                                364,
                                700
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                560,
                                100
                            ],
                            [
                                692,
                                108
                            ],
                            [
                                880,
                                698
                            ],
                            [
                                40,
                                676
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "11",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/301",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                512,
                                144
                            ],
                            [
                                706,
                                138
                            ],
                            [
                                844,
                                688
                            ],
                            [
                                28,
                                706
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                512,
                                144
                            ],
                            [
                                706,
                                138
                            ],
                            [
                                844,
                                688
                            ],
                            [
                                28,
                                706
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "12",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/401",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                496,
                                80
                            ],
                            [
                                706,
                                80
                            ],
                            [
                                1016,
                                626
                            ],
                            [
                                160,
                                672
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                496,
                                80
                            ],
                            [
                                706,
                                80
                            ],
                            [
                                1016,
                                626
                            ],
                            [
                                160,
                                672
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "13",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/501",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                448,
                                148
                            ],
                            [
                                692,
                                128
                            ],
                            [
                                972,
                                684
                            ],
                            [
                                18,
                                684
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                448,
                                148
                            ],
                            [
                                692,
                                128
                            ],
                            [
                                972,
                                684
                            ],
                            [
                                18,
                                684
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "14",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/601",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                600,
                                76
                            ],
                            [
                                716,
                                84
                            ],
                            [
                                1226,
                                668
                            ],
                            [
                                324,
                                712
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                600,
                                76
                            ],
                            [
                                716,
                                84
                            ],
                            [
                                1226,
                                668
                            ],
                            [
                                324,
                                712
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "15",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/701",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                430,
                                118
                            ],
                            [
                                516,
                                110
                            ],
                            [
                                902,
                                630
                            ],
                            [
                                168,
                                676
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                548,
                                154
                            ],
                            [
                                692,
                                144
                            ],
                            [
                                1080,
                                700
                            ],
                            [
                                252,
                                684
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "16",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/801",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                560,
                                114
                            ],
                            [
                                708,
                                136
                            ],
                            [
                                1024,
                                674
                            ],
                            [
                                168,
                                658
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                560,
                                114
                            ],
                            [
                                708,
                                136
                            ],
                            [
                                1024,
                                674
                            ],
                            [
                                168,
                                658
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "17",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/901",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                530,
                                98
                            ],
                            [
                                730,
                                96
                            ],
                            [
                                1146,
                                690
                            ],
                            [
                                40,
                                700
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                530,
                                98
                            ],
                            [
                                730,
                                96
                            ],
                            [
                                1146,
                                690
                            ],
                            [
                                40,
                                700
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "18",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1001",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                592,
                                114
                            ],
                            [
                                700,
                                112
                            ],
                            [
                                1244,
                                704
                            ],
                            [
                                474,
                                700
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                592,
                                114
                            ],
                            [
                                700,
                                112
                            ],
                            [
                                1244,
                                704
                            ],
                            [
                                474,
                                700
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "19",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1101",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                554,
                                128
                            ],
                            [
                                772,
                                112
                            ],
                            [
                                1226,
                                692
                            ],
                            [
                                264,
                                700
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                554,
                                128
                            ],
                            [
                                772,
                                112
                            ],
                            [
                                1226,
                                692
                            ],
                            [
                                264,
                                700
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "20",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1201",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                564,
                                122
                            ],
                            [
                                704,
                                128
                            ],
                            [
                                1080,
                                708
                            ],
                            [
                                210,
                                716
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                564,
                                122
                            ],
                            [
                                704,
                                128
                            ],
                            [
                                1080,
                                708
                            ],
                            [
                                210,
                                716
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        }
    ]
}
textjson/focus_monitor_2.json
New file
@@ -0,0 +1,839 @@
{
    "version": "1.0",
    "show_screen": false,
    "show_board": false,
    "kafka_server": "192.168.0.78:9092",
    "kafka_topic": "vp_ba_result",
    "max_input_per_detection": 12,
    "ba_jam_config": {
        "check_interval_frames": 10,
        "check_max_distance": 150,
        "check_min_hit_frames": 5,
        "check_min_stops": 2,
        "check_notify_interval": 120,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_stop_config": {
        "check_interval_frames": 20,
        "check_max_distance": 100,
        "check_min_hit_frames": 120,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_person_gathering_config": {
        "check_interval_frames": 20,
        "check_min_hit_frames": 8,
        "check_notify_interval": 60,
        "person_gathering_distance_factor": 4,
        "min_gathering_person": 5,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_person_fall_down_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 20,
        "check_notify_interval": 60,
        "person_fall_down_threshold": 0.5,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_wrong_direction_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 5,
        "check_notify_interval": 60,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_barrier_gate_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 3,
        "check_notify_interval": 1,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_fire_smoke_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 5,
        "check_notify_interval": 60,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_junk_stack_config": {
        "check_interval_frames": 200,
        "check_min_hit_frames": 5,
        "check_notify_interval": 600,
        "need_record_image": true,
        "need_record_video": true
    },
    "channels": [
        {
            "id": "21",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1301",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                594,
                                98
                            ],
                            [
                                690,
                                96
                            ],
                            [
                                1058,
                                690
                            ],
                            [
                                232,
                                700
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                594,
                                98
                            ],
                            [
                                690,
                                96
                            ],
                            [
                                1058,
                                690
                            ],
                            [
                                232,
                                700
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "22",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1401",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                578,
                                122
                            ],
                            [
                                804,
                                138
                            ],
                            [
                                1154,
                                700
                            ],
                            [
                                100,
                                698
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                578,
                                122
                            ],
                            [
                                804,
                                138
                            ],
                            [
                                1154,
                                700
                            ],
                            [
                                100,
                                698
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "23",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1501",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                586,
                                100
                            ],
                            [
                                714,
                                98
                            ],
                            [
                                1168,
                                684
                            ],
                            [
                                258,
                                700
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                586,
                                100
                            ],
                            [
                                714,
                                98
                            ],
                            [
                                1168,
                                684
                            ],
                            [
                                258,
                                700
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "24",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1601",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                520,
                                92
                            ],
                            [
                                642,
                                76
                            ],
                            [
                                906,
                                688
                            ],
                            [
                                18,
                                698
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                520,
                                92
                            ],
                            [
                                642,
                                76
                            ],
                            [
                                906,
                                688
                            ],
                            [
                                18,
                                698
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "25",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1701",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                530,
                                76
                            ],
                            [
                                816,
                                90
                            ],
                            [
                                1256,
                                684
                            ],
                            [
                                18,
                                700
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                530,
                                76
                            ],
                            [
                                816,
                                90
                            ],
                            [
                                1256,
                                684
                            ],
                            [
                                18,
                                700
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "26",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1801",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                552,
                                72
                            ],
                            [
                                696,
                                76
                            ],
                            [
                                940,
                                714
                            ],
                            [
                                64,
                                698
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                552,
                                72
                            ],
                            [
                                696,
                                76
                            ],
                            [
                                940,
                                714
                            ],
                            [
                                64,
                                698
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "30",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2201",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                554,
                                64
                            ],
                            [
                                652,
                                60
                            ],
                            [
                                1034,
                                706
                            ],
                            [
                                128,
                                700
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                554,
                                64
                            ],
                            [
                                652,
                                60
                            ],
                            [
                                1034,
                                706
                            ],
                            [
                                128,
                                700
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "31",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2301",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                546,
                                64
                            ],
                            [
                                664,
                                52
                            ],
                            [
                                1208,
                                682
                            ],
                            [
                                208,
                                700
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                546,
                                64
                            ],
                            [
                                664,
                                52
                            ],
                            [
                                1208,
                                682
                            ],
                            [
                                208,
                                700
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "32",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2401",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                554,
                                68
                            ],
                            [
                                708,
                                50
                            ],
                            [
                                1074,
                                696
                            ],
                            [
                                260,
                                688
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                554,
                                68
                            ],
                            [
                                708,
                                50
                            ],
                            [
                                1074,
                                696
                            ],
                            [
                                260,
                                688
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "33",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2501",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                560,
                                90
                            ],
                            [
                                676,
                                84
                            ],
                            [
                                1148,
                                688
                            ],
                            [
                                284,
                                696
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                560,
                                90
                            ],
                            [
                                676,
                                84
                            ],
                            [
                                1148,
                                688
                            ],
                            [
                                284,
                                696
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "34",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2601",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                560,
                                154
                            ],
                            [
                                720,
                                144
                            ],
                            [
                                1164,
                                688
                            ],
                            [
                                120,
                                696
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                560,
                                154
                            ],
                            [
                                720,
                                144
                            ],
                            [
                                1164,
                                688
                            ],
                            [
                                120,
                                696
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "35",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2701",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                508,
                                106
                            ],
                            [
                                704,
                                84
                            ],
                            [
                                1066,
                                688
                            ],
                            [
                                84,
                                706
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                508,
                                106
                            ],
                            [
                                704,
                                84
                            ],
                            [
                                1066,
                                688
                            ],
                            [
                                84,
                                706
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        }
    ]
}
textjson/focus_monitor_3.json
New file
@@ -0,0 +1,891 @@
{
    "version": "1.0",
    "show_screen": false,
    "show_board": false,
    "kafka_server": "192.168.0.78:9092",
    "kafka_topic": "vp_ba_result",
    "max_input_per_detection": 12,
    "ba_jam_config": {
        "check_interval_frames": 10,
        "check_max_distance": 150,
        "check_min_hit_frames": 5,
        "check_min_stops": 2,
        "check_notify_interval": 120,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_stop_config": {
        "check_interval_frames": 20,
        "check_max_distance": 100,
        "check_min_hit_frames": 120,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_person_gathering_config": {
        "check_interval_frames": 20,
        "check_min_hit_frames": 8,
        "check_notify_interval": 60,
        "person_gathering_distance_factor": 4,
        "min_gathering_person": 5,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_person_fall_down_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 20,
        "check_notify_interval": 60,
        "person_fall_down_threshold": 0.5,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_wrong_direction_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 5,
        "check_notify_interval": 60,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_barrier_gate_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 3,
        "check_notify_interval": 1,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_fire_smoke_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 5,
        "check_notify_interval": 60,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_junk_stack_config": {
        "check_interval_frames": 200,
        "check_min_hit_frames": 5,
        "check_notify_interval": 600,
        "need_record_image": true,
        "need_record_video": true
    },
    "channels": [
        {
            "id": "36",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2801",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                524,
                                80
                            ],
                            [
                                800,
                                76
                            ],
                            [
                                1266,
                                642
                            ],
                            [
                                52,
                                634
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                524,
                                80
                            ],
                            [
                                800,
                                76
                            ],
                            [
                                1266,
                                642
                            ],
                            [
                                52,
                                634
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "37",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2901",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                522,
                                56
                            ],
                            [
                                720,
                                60
                            ],
                            [
                                1020,
                                708
                            ],
                            [
                                42,
                                692
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                522,
                                56
                            ],
                            [
                                720,
                                60
                            ],
                            [
                                1020,
                                708
                            ],
                            [
                                42,
                                692
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "38",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/3001",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                602,
                                42
                            ],
                            [
                                692,
                                40
                            ],
                            [
                                1130,
                                698
                            ],
                            [
                                322,
                                704
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                602,
                                42
                            ],
                            [
                                692,
                                40
                            ],
                            [
                                1130,
                                698
                            ],
                            [
                                322,
                                704
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "39",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/3101",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                530,
                                68
                            ],
                            [
                                668,
                                72
                            ],
                            [
                                992,
                                700
                            ],
                            [
                                120,
                                704
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                530,
                                68
                            ],
                            [
                                668,
                                72
                            ],
                            [
                                992,
                                700
                            ],
                            [
                                120,
                                704
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "40",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/3201",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                584,
                                56
                            ],
                            [
                                700,
                                48
                            ],
                            [
                                1154,
                                706
                            ],
                            [
                                280,
                                704
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                584,
                                56
                            ],
                            [
                                700,
                                48
                            ],
                            [
                                1154,
                                706
                            ],
                            [
                                280,
                                704
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "41",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/101",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                564,
                                50
                            ],
                            [
                                680,
                                42
                            ],
                            [
                                1016,
                                700
                            ],
                            [
                                68,
                                700
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                564,
                                50
                            ],
                            [
                                680,
                                42
                            ],
                            [
                                1016,
                                700
                            ],
                            [
                                68,
                                700
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "42",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/202",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                560,
                                112
                            ],
                            [
                                680,
                                92
                            ],
                            [
                                1106,
                                704
                            ],
                            [
                                224,
                                704
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                560,
                                112
                            ],
                            [
                                680,
                                92
                            ],
                            [
                                1106,
                                704
                            ],
                            [
                                224,
                                704
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "43",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/301",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                458,
                                84
                            ],
                            [
                                608,
                                88
                            ],
                            [
                                1258,
                                698
                            ],
                            [
                                232,
                                698
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                458,
                                84
                            ],
                            [
                                608,
                                88
                            ],
                            [
                                1258,
                                698
                            ],
                            [
                                232,
                                698
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "44",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/401",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                490,
                                104
                            ],
                            [
                                730,
                                84
                            ],
                            [
                                1210,
                                716
                            ],
                            [
                                60,
                                692
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                490,
                                104
                            ],
                            [
                                730,
                                84
                            ],
                            [
                                1210,
                                716
                            ],
                            [
                                60,
                                692
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                },
                {
                    "action": "WRONG_WAY",
                    "regions": [
                        [
                            [
                                10,
                                10
                            ],
                            [
                                10,
                                20
                            ]
                        ],
                        [
                            [
                                10,
                                20
                            ],
                            [
                                10,
                                10
                            ]
                        ]
                    ],
                    "half_width": 360
                }
            ]
        },
        {
            "id": "45",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/501",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                520,
                                64
                            ],
                            [
                                682,
                                48
                            ],
                            [
                                1242,
                                668
                            ],
                            [
                                148,
                                682
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                520,
                                64
                            ],
                            [
                                682,
                                48
                            ],
                            [
                                1242,
                                668
                            ],
                            [
                                148,
                                682
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "46",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/601",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                568,
                                106
                            ],
                            [
                                730,
                                114
                            ],
                            [
                                1160,
                                680
                            ],
                            [
                                234,
                                672
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                568,
                                106
                            ],
                            [
                                730,
                                114
                            ],
                            [
                                1160,
                                680
                            ],
                            [
                                234,
                                672
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "47",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/701",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                536,
                                64
                            ],
                            [
                                730,
                                68
                            ],
                            [
                                1266,
                                626
                            ],
                            [
                                58,
                                692
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                536,
                                64
                            ],
                            [
                                730,
                                68
                            ],
                            [
                                1266,
                                626
                            ],
                            [
                                58,
                                692
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                },
                {
                    "action": "WRONG_WAY",
                    "regions": [
                        [
                            [
                                10,
                                10
                            ],
                            [
                                10,
                                20
                            ]
                        ],
                        [
                            [
                                10,
                                10
                            ],
                            [
                                10,
                                20
                            ]
                        ]
                    ],
                    "half_width": 360
                }
            ]
        }
    ]
}
textjson/focus_monitor_4.json
New file
@@ -0,0 +1,839 @@
{
    "version": "1.0",
    "show_screen": false,
    "show_board": false,
    "kafka_server": "192.168.0.78:9092",
    "kafka_topic": "vp_ba_result",
    "max_input_per_detection": 12,
    "ba_jam_config": {
        "check_interval_frames": 10,
        "check_max_distance": 150,
        "check_min_hit_frames": 5,
        "check_min_stops": 2,
        "check_notify_interval": 120,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_stop_config": {
        "check_interval_frames": 20,
        "check_max_distance": 100,
        "check_min_hit_frames": 120,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_person_gathering_config": {
        "check_interval_frames": 20,
        "check_min_hit_frames": 8,
        "check_notify_interval": 60,
        "person_gathering_distance_factor": 4,
        "min_gathering_person": 5,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_person_fall_down_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 20,
        "check_notify_interval": 60,
        "person_fall_down_threshold": 0.5,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_wrong_direction_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 5,
        "check_notify_interval": 60,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_barrier_gate_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 3,
        "check_notify_interval": 1,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_fire_smoke_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 5,
        "check_notify_interval": 60,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_junk_stack_config": {
        "check_interval_frames": 200,
        "check_min_hit_frames": 5,
        "check_notify_interval": 600,
        "need_record_image": true,
        "need_record_video": true
    },
    "channels": [
        {
            "id": "48",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/801",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                560,
                                76
                            ],
                            [
                                722,
                                76
                            ],
                            [
                                1148,
                                704
                            ],
                            [
                                18,
                                642
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                560,
                                76
                            ],
                            [
                                722,
                                76
                            ],
                            [
                                1148,
                                704
                            ],
                            [
                                18,
                                642
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "49",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/901",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                544,
                                52
                            ],
                            [
                                690,
                                44
                            ],
                            [
                                1088,
                                698
                            ],
                            [
                                44,
                                704
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                544,
                                52
                            ],
                            [
                                690,
                                44
                            ],
                            [
                                1088,
                                698
                            ],
                            [
                                44,
                                704
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "50",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1001",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                554,
                                60
                            ],
                            [
                                746,
                                42
                            ],
                            [
                                1064,
                                700
                            ],
                            [
                                10,
                                684
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                554,
                                60
                            ],
                            [
                                746,
                                42
                            ],
                            [
                                1064,
                                700
                            ],
                            [
                                10,
                                684
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "51",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1101",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                540,
                                64
                            ],
                            [
                                728,
                                56
                            ],
                            [
                                1264,
                                498
                            ],
                            [
                                258,
                                684
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                540,
                                64
                            ],
                            [
                                728,
                                56
                            ],
                            [
                                1264,
                                498
                            ],
                            [
                                258,
                                684
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "52",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1201",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                562,
                                100
                            ],
                            [
                                786,
                                100
                            ],
                            [
                                1258,
                                648
                            ],
                            [
                                82,
                                692
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                562,
                                100
                            ],
                            [
                                786,
                                100
                            ],
                            [
                                1258,
                                648
                            ],
                            [
                                82,
                                692
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "53",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1301",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                588,
                                84
                            ],
                            [
                                728,
                                84
                            ],
                            [
                                1250,
                                680
                            ],
                            [
                                132,
                                696
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                588,
                                84
                            ],
                            [
                                728,
                                84
                            ],
                            [
                                1250,
                                680
                            ],
                            [
                                132,
                                696
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "54",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1401",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                600,
                                68
                            ],
                            [
                                746,
                                56
                            ],
                            [
                                1144,
                                712
                            ],
                            [
                                12,
                                698
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                600,
                                68
                            ],
                            [
                                746,
                                56
                            ],
                            [
                                1144,
                                712
                            ],
                            [
                                12,
                                698
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "55",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1501",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                508,
                                76
                            ],
                            [
                                752,
                                64
                            ],
                            [
                                1258,
                                596
                            ],
                            [
                                192,
                                698
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                508,
                                76
                            ],
                            [
                                752,
                                64
                            ],
                            [
                                1258,
                                596
                            ],
                            [
                                192,
                                698
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "56",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1601",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                554,
                                76
                            ],
                            [
                                732,
                                64
                            ],
                            [
                                1188,
                                698
                            ],
                            [
                                92,
                                692
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                554,
                                76
                            ],
                            [
                                732,
                                64
                            ],
                            [
                                1188,
                                698
                            ],
                            [
                                92,
                                692
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "57",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1701",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                552,
                                84
                            ],
                            [
                                706,
                                76
                            ],
                            [
                                1194,
                                692
                            ],
                            [
                                132,
                                700
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                552,
                                84
                            ],
                            [
                                706,
                                76
                            ],
                            [
                                1194,
                                692
                            ],
                            [
                                132,
                                700
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "58",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1801",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                560,
                                50
                            ],
                            [
                                684,
                                42
                            ],
                            [
                                1042,
                                700
                            ],
                            [
                                84,
                                700
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                560,
                                50
                            ],
                            [
                                684,
                                42
                            ],
                            [
                                1042,
                                700
                            ],
                            [
                                84,
                                700
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "59",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1901",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                554,
                                100
                            ],
                            [
                                770,
                                106
                            ],
                            [
                                1192,
                                700
                            ],
                            [
                                18,
                                704
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                554,
                                100
                            ],
                            [
                                770,
                                106
                            ],
                            [
                                1192,
                                700
                            ],
                            [
                                18,
                                704
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        }
    ]
}
textjson/focus_monitor_5.json
New file
@@ -0,0 +1,854 @@
{
    "version": "1.0",
    "show_screen": false,
    "show_board": false,
    "kafka_server": "192.168.0.78:9092",
    "kafka_topic": "vp_ba_result",
    "max_input_per_detection": 12,
    "ba_jam_config": {
        "check_interval_frames": 10,
        "check_max_distance": 150,
        "check_min_hit_frames": 5,
        "check_min_stops": 2,
        "check_notify_interval": 120,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_stop_config": {
        "check_interval_frames": 20,
        "check_max_distance": 100,
        "check_min_hit_frames": 120,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_person_gathering_config": {
        "check_interval_frames": 20,
        "check_min_hit_frames": 8,
        "check_notify_interval": 60,
        "person_gathering_distance_factor": 4,
        "min_gathering_person": 5,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_person_fall_down_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 20,
        "check_notify_interval": 60,
        "person_fall_down_threshold": 0.5,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_wrong_direction_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 5,
        "check_notify_interval": 60,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_barrier_gate_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 3,
        "check_notify_interval": 1,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_fire_smoke_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 5,
        "check_notify_interval": 60,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_junk_stack_config": {
        "check_interval_frames": 200,
        "check_min_hit_frames": 5,
        "check_notify_interval": 600,
        "need_record_image": true,
        "need_record_video": true
    },
    "channels": [
        {
            "id": "60",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2001",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                532,
                                120
                            ],
                            [
                                748,
                                114
                            ],
                            [
                                1180,
                                684
                            ],
                            [
                                124,
                                700
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                532,
                                120
                            ],
                            [
                                748,
                                114
                            ],
                            [
                                1180,
                                684
                            ],
                            [
                                124,
                                700
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "61",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2101",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                500,
                                116
                            ],
                            [
                                704,
                                96
                            ],
                            [
                                1276,
                                436
                            ],
                            [
                                560,
                                698
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                500,
                                116
                            ],
                            [
                                704,
                                96
                            ],
                            [
                                1276,
                                436
                            ],
                            [
                                560,
                                698
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "62",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2201",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                452,
                                72
                            ],
                            [
                                600,
                                68
                            ],
                            [
                                1240,
                                706
                            ],
                            [
                                50,
                                698
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                452,
                                72
                            ],
                            [
                                600,
                                68
                            ],
                            [
                                1240,
                                706
                            ],
                            [
                                50,
                                698
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "63",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2301",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                538,
                                52
                            ],
                            [
                                716,
                                56
                            ],
                            [
                                1122,
                                704
                            ],
                            [
                                84,
                                712
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                538,
                                52
                            ],
                            [
                                716,
                                56
                            ],
                            [
                                1122,
                                704
                            ],
                            [
                                84,
                                712
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "64",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2401",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                482,
                                48
                            ],
                            [
                                816,
                                40
                            ],
                            [
                                1266,
                                684
                            ],
                            [
                                2,
                                688
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                482,
                                48
                            ],
                            [
                                816,
                                40
                            ],
                            [
                                1266,
                                684
                            ],
                            [
                                2,
                                688
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "65",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2501",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                554,
                                104
                            ],
                            [
                                698,
                                80
                            ],
                            [
                                1266,
                                700
                            ],
                            [
                                74,
                                696
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                554,
                                104
                            ],
                            [
                                698,
                                80
                            ],
                            [
                                1266,
                                700
                            ],
                            [
                                74,
                                696
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "66",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2601",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 1,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                514,
                                10
                            ],
                            [
                                684,
                                20
                            ],
                            [
                                1260,
                                452
                            ],
                            [
                                10,
                                620
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                514,
                                10
                            ],
                            [
                                684,
                                20
                            ],
                            [
                                1260,
                                452
                            ],
                            [
                                10,
                                620
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                },
                {
                    "action": "BARRIER_GATE",
                    "regions": [
                        [
                            [
                                424,
                                122
                            ],
                            [
                                816,
                                106
                            ]
                        ]
                    ]
                }
            ]
        },
        {
            "id": "67",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2701",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                444,
                                84
                            ],
                            [
                                786,
                                68
                            ],
                            [
                                1264,
                                500
                            ],
                            [
                                8,
                                698
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                444,
                                84
                            ],
                            [
                                786,
                                68
                            ],
                            [
                                1264,
                                500
                            ],
                            [
                                8,
                                698
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "68",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2801",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                412,
                                120
                            ],
                            [
                                700,
                                114
                            ],
                            [
                                1210,
                                698
                            ],
                            [
                                20,
                                706
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                412,
                                120
                            ],
                            [
                                700,
                                114
                            ],
                            [
                                1210,
                                698
                            ],
                            [
                                20,
                                706
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "69",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2901",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                328,
                                120
                            ],
                            [
                                1168,
                                252
                            ],
                            [
                                1256,
                                698
                            ],
                            [
                                18,
                                690
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                328,
                                120
                            ],
                            [
                                1168,
                                252
                            ],
                            [
                                1256,
                                698
                            ],
                            [
                                18,
                                690
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "70",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/3001",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                554,
                                32
                            ],
                            [
                                772,
                                48
                            ],
                            [
                                1264,
                                692
                            ],
                            [
                                18,
                                688
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                554,
                                32
                            ],
                            [
                                772,
                                48
                            ],
                            [
                                1264,
                                692
                            ],
                            [
                                18,
                                688
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "71",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/3101",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                524,
                                72
                            ],
                            [
                                660,
                                64
                            ],
                            [
                                1156,
                                692
                            ],
                            [
                                52,
                                704
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                524,
                                72
                            ],
                            [
                                660,
                                64
                            ],
                            [
                                1156,
                                692
                            ],
                            [
                                52,
                                704
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        }
    ]
}
textjson/focus_monitor_6.json
New file
@@ -0,0 +1,854 @@
{
    "version": "1.0",
    "show_screen": false,
    "show_board": false,
    "kafka_server": "192.168.0.78:9092",
    "kafka_topic": "vp_ba_result",
    "max_input_per_detection": 12,
    "ba_jam_config": {
        "check_interval_frames": 10,
        "check_max_distance": 150,
        "check_min_hit_frames": 5,
        "check_min_stops": 2,
        "check_notify_interval": 120,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_stop_config": {
        "check_interval_frames": 20,
        "check_max_distance": 100,
        "check_min_hit_frames": 120,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_person_gathering_config": {
        "check_interval_frames": 20,
        "check_min_hit_frames": 8,
        "check_notify_interval": 60,
        "person_gathering_distance_factor": 4,
        "min_gathering_person": 5,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_person_fall_down_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 20,
        "check_notify_interval": 60,
        "person_fall_down_threshold": 0.5,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_wrong_direction_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 5,
        "check_notify_interval": 60,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_barrier_gate_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 3,
        "check_notify_interval": 1,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_fire_smoke_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 5,
        "check_notify_interval": 60,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_junk_stack_config": {
        "check_interval_frames": 200,
        "check_min_hit_frames": 5,
        "check_notify_interval": 600,
        "need_record_image": true,
        "need_record_video": true
    },
    "channels": [
        {
            "id": "72",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/3201",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                554,
                                84
                            ],
                            [
                                700,
                                80
                            ],
                            [
                                1146,
                                714
                            ],
                            [
                                124,
                                706
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                554,
                                84
                            ],
                            [
                                700,
                                80
                            ],
                            [
                                1146,
                                714
                            ],
                            [
                                124,
                                706
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "73",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/101",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                580,
                                68
                            ],
                            [
                                696,
                                64
                            ],
                            [
                                1268,
                                642
                            ],
                            [
                                400,
                                712
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                580,
                                68
                            ],
                            [
                                696,
                                64
                            ],
                            [
                                1268,
                                642
                            ],
                            [
                                400,
                                712
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "74",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/202",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                664,
                                84
                            ],
                            [
                                808,
                                80
                            ],
                            [
                                1272,
                                562
                            ],
                            [
                                418,
                                712
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                664,
                                84
                            ],
                            [
                                808,
                                80
                            ],
                            [
                                1272,
                                562
                            ],
                            [
                                418,
                                712
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "75",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/301",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                532,
                                60
                            ],
                            [
                                676,
                                56
                            ],
                            [
                                890,
                                708
                            ],
                            [
                                2,
                                578
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                532,
                                60
                            ],
                            [
                                676,
                                56
                            ],
                            [
                                890,
                                708
                            ],
                            [
                                2,
                                578
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "76",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/401",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                562,
                                84
                            ],
                            [
                                720,
                                84
                            ],
                            [
                                1188,
                                700
                            ],
                            [
                                40,
                                712
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                562,
                                84
                            ],
                            [
                                720,
                                84
                            ],
                            [
                                1188,
                                700
                            ],
                            [
                                40,
                                712
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "77",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/501",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                520,
                                76
                            ],
                            [
                                696,
                                98
                            ],
                            [
                                1140,
                                698
                            ],
                            [
                                88,
                                706
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                520,
                                76
                            ],
                            [
                                696,
                                98
                            ],
                            [
                                1140,
                                698
                            ],
                            [
                                88,
                                706
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "78",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/601",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                410,
                                60
                            ],
                            [
                                1082,
                                128
                            ],
                            [
                                1276,
                                356
                            ],
                            [
                                4,
                                700
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                410,
                                60
                            ],
                            [
                                1082,
                                128
                            ],
                            [
                                1276,
                                356
                            ],
                            [
                                4,
                                700
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "79",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/701",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 1,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                496,
                                106
                            ],
                            [
                                820,
                                112
                            ],
                            [
                                1042,
                                688
                            ],
                            [
                                4,
                                256
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                496,
                                106
                            ],
                            [
                                820,
                                112
                            ],
                            [
                                1042,
                                688
                            ],
                            [
                                4,
                                256
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                },
                {
                    "action": "BARRIER_GATE",
                    "regions": [
                        [
                            [
                                342,
                                238
                            ],
                            [
                                1142,
                                286
                            ]
                        ]
                    ]
                }
            ]
        },
        {
            "id": "80",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/801",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                508,
                                48
                            ],
                            [
                                666,
                                32
                            ],
                            [
                                1266,
                                530
                            ],
                            [
                                194,
                                554
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                508,
                                48
                            ],
                            [
                                666,
                                32
                            ],
                            [
                                1266,
                                530
                            ],
                            [
                                194,
                                554
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "81",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/901",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                626,
                                106
                            ],
                            [
                                836,
                                122
                            ],
                            [
                                1194,
                                714
                            ],
                            [
                                132,
                                684
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                626,
                                106
                            ],
                            [
                                836,
                                122
                            ],
                            [
                                1194,
                                714
                            ],
                            [
                                132,
                                684
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "82",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1001",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                504,
                                90
                            ],
                            [
                                682,
                                96
                            ],
                            [
                                994,
                                714
                            ],
                            [
                                10,
                                684
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                504,
                                90
                            ],
                            [
                                682,
                                96
                            ],
                            [
                                994,
                                714
                            ],
                            [
                                10,
                                684
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "83",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1101",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                634,
                                68
                            ],
                            [
                                808,
                                100
                            ],
                            [
                                644,
                                704
                            ],
                            [
                                8,
                                410
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                634,
                                68
                            ],
                            [
                                808,
                                100
                            ],
                            [
                                644,
                                704
                            ],
                            [
                                8,
                                410
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        }
    ]
}
textjson/focus_monitor_7.json
New file
@@ -0,0 +1,839 @@
{
    "version": "1.0",
    "show_screen": false,
    "show_board": false,
    "kafka_server": "192.168.0.78:9092",
    "kafka_topic": "vp_ba_result",
    "max_input_per_detection": 12,
    "ba_jam_config": {
        "check_interval_frames": 10,
        "check_max_distance": 150,
        "check_min_hit_frames": 5,
        "check_min_stops": 2,
        "check_notify_interval": 120,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_stop_config": {
        "check_interval_frames": 20,
        "check_max_distance": 100,
        "check_min_hit_frames": 120,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_person_gathering_config": {
        "check_interval_frames": 20,
        "check_min_hit_frames": 8,
        "check_notify_interval": 60,
        "person_gathering_distance_factor": 4,
        "min_gathering_person": 5,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_person_fall_down_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 20,
        "check_notify_interval": 60,
        "person_fall_down_threshold": 0.5,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_wrong_direction_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 5,
        "check_notify_interval": 60,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_barrier_gate_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 3,
        "check_notify_interval": 1,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_fire_smoke_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 5,
        "check_notify_interval": 60,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_junk_stack_config": {
        "check_interval_frames": 200,
        "check_min_hit_frames": 5,
        "check_notify_interval": 600,
        "need_record_image": true,
        "need_record_video": true
    },
    "channels": [
        {
            "id": "84",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1201",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                604,
                                48
                            ],
                            [
                                730,
                                44
                            ],
                            [
                                1162,
                                706
                            ],
                            [
                                74,
                                704
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                604,
                                48
                            ],
                            [
                                730,
                                44
                            ],
                            [
                                1162,
                                706
                            ],
                            [
                                74,
                                704
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "85",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1301",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                656,
                                50
                            ],
                            [
                                772,
                                60
                            ],
                            [
                                1264,
                                672
                            ],
                            [
                                218,
                                698
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                656,
                                50
                            ],
                            [
                                772,
                                60
                            ],
                            [
                                1264,
                                672
                            ],
                            [
                                218,
                                698
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "86",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1401",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                576,
                                72
                            ],
                            [
                                736,
                                76
                            ],
                            [
                                1148,
                                690
                            ],
                            [
                                82,
                                692
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                576,
                                72
                            ],
                            [
                                736,
                                76
                            ],
                            [
                                1148,
                                690
                            ],
                            [
                                82,
                                692
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "87",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1501",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                568,
                                98
                            ],
                            [
                                832,
                                84
                            ],
                            [
                                1264,
                                544
                            ],
                            [
                                122,
                                690
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                568,
                                98
                            ],
                            [
                                832,
                                84
                            ],
                            [
                                1264,
                                544
                            ],
                            [
                                122,
                                690
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "88",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1601",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                650,
                                64
                            ],
                            [
                                1024,
                                68
                            ],
                            [
                                1268,
                                712
                            ],
                            [
                                10,
                                288
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                650,
                                64
                            ],
                            [
                                1024,
                                68
                            ],
                            [
                                1268,
                                712
                            ],
                            [
                                10,
                                288
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "118",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1701",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                560,
                                136
                            ],
                            [
                                730,
                                128
                            ],
                            [
                                1212,
                                700
                            ],
                            [
                                186,
                                708
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                560,
                                136
                            ],
                            [
                                730,
                                128
                            ],
                            [
                                1212,
                                700
                            ],
                            [
                                186,
                                708
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "119",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1801",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                586,
                                72
                            ],
                            [
                                728,
                                68
                            ],
                            [
                                1216,
                                716
                            ],
                            [
                                202,
                                712
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                586,
                                72
                            ],
                            [
                                728,
                                68
                            ],
                            [
                                1216,
                                716
                            ],
                            [
                                202,
                                712
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "120",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1901",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                480,
                                10
                            ],
                            [
                                664,
                                18
                            ],
                            [
                                1242,
                                708
                            ],
                            [
                                122,
                                690
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                480,
                                10
                            ],
                            [
                                664,
                                18
                            ],
                            [
                                1242,
                                708
                            ],
                            [
                                122,
                                690
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "121",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/2001",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                496,
                                84
                            ],
                            [
                                668,
                                84
                            ],
                            [
                                1172,
                                714
                            ],
                            [
                                120,
                                698
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                496,
                                84
                            ],
                            [
                                668,
                                84
                            ],
                            [
                                1172,
                                714
                            ],
                            [
                                120,
                                698
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "122",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/101",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                576,
                                80
                            ],
                            [
                                706,
                                76
                            ],
                            [
                                1098,
                                708
                            ],
                            [
                                168,
                                688
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                576,
                                80
                            ],
                            [
                                706,
                                76
                            ],
                            [
                                1098,
                                708
                            ],
                            [
                                168,
                                688
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "123",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/202",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                560,
                                72
                            ],
                            [
                                960,
                                84
                            ],
                            [
                                1236,
                                712
                            ],
                            [
                                20,
                                634
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                560,
                                72
                            ],
                            [
                                960,
                                84
                            ],
                            [
                                1236,
                                712
                            ],
                            [
                                20,
                                634
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "124",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/301",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                604,
                                68
                            ],
                            [
                                810,
                                52
                            ],
                            [
                                1272,
                                572
                            ],
                            [
                                12,
                                610
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                604,
                                68
                            ],
                            [
                                810,
                                52
                            ],
                            [
                                1272,
                                572
                            ],
                            [
                                12,
                                610
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        }
    ]
}
textjson/focus_monitor_8.json
New file
@@ -0,0 +1,659 @@
{
    "version": "1.0",
    "show_screen": false,
    "show_board": false,
    "kafka_server": "192.168.0.78:9092",
    "kafka_topic": "vp_ba_result",
    "max_input_per_detection": 12,
    "ba_jam_config": {
        "check_interval_frames": 10,
        "check_max_distance": 150,
        "check_min_hit_frames": 5,
        "check_min_stops": 2,
        "check_notify_interval": 120,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_stop_config": {
        "check_interval_frames": 20,
        "check_max_distance": 100,
        "check_min_hit_frames": 120,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_person_gathering_config": {
        "check_interval_frames": 20,
        "check_min_hit_frames": 8,
        "check_notify_interval": 60,
        "person_gathering_distance_factor": 4,
        "min_gathering_person": 5,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_person_fall_down_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 20,
        "check_notify_interval": 60,
        "person_fall_down_threshold": 0.5,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_wrong_direction_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 5,
        "check_notify_interval": 60,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_barrier_gate_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 3,
        "check_notify_interval": 1,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_fire_smoke_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 5,
        "check_notify_interval": 60,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_junk_stack_config": {
        "check_interval_frames": 200,
        "check_min_hit_frames": 5,
        "check_notify_interval": 600,
        "need_record_image": true,
        "need_record_video": true
    },
    "channels": [
        {
            "id": "125",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/401",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                416,
                                112
                            ],
                            [
                                736,
                                114
                            ],
                            [
                                1250,
                                700
                            ],
                            [
                                10,
                                612
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                416,
                                112
                            ],
                            [
                                736,
                                114
                            ],
                            [
                                1250,
                                700
                            ],
                            [
                                10,
                                612
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                },
                {
                    "action": "WRONG_WAY",
                    "regions": [
                        [
                            [
                                10,
                                10
                            ],
                            [
                                10,
                                20
                            ]
                        ],
                        [
                            [
                                10,
                                20
                            ],
                            [
                                10,
                                10
                            ]
                        ]
                    ],
                    "half_width": 360
                }
            ]
        },
        {
            "id": "126",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/501",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                512,
                                88
                            ],
                            [
                                738,
                                96
                            ],
                            [
                                1260,
                                516
                            ],
                            [
                                80,
                                712
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                512,
                                88
                            ],
                            [
                                738,
                                96
                            ],
                            [
                                1260,
                                516
                            ],
                            [
                                80,
                                712
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                },
                {
                    "action": "WRONG_WAY",
                    "regions": [
                        [
                            [
                                10,
                                10
                            ],
                            [
                                10,
                                20
                            ]
                        ],
                        [
                            [
                                10,
                                20
                            ],
                            [
                                10,
                                10
                            ]
                        ]
                    ],
                    "half_width": 360
                }
            ]
        },
        {
            "id": "127",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/601",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                474,
                                92
                            ],
                            [
                                706,
                                84
                            ],
                            [
                                1058,
                                706
                            ],
                            [
                                12,
                                452
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                474,
                                92
                            ],
                            [
                                706,
                                84
                            ],
                            [
                                1058,
                                706
                            ],
                            [
                                12,
                                452
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "128",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/701",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                488,
                                96
                            ],
                            [
                                720,
                                84
                            ],
                            [
                                1066,
                                692
                            ],
                            [
                                0,
                                552
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                488,
                                96
                            ],
                            [
                                720,
                                84
                            ],
                            [
                                1066,
                                692
                            ],
                            [
                                0,
                                552
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "129",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/801",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                466,
                                90
                            ],
                            [
                                802,
                                84
                            ],
                            [
                                1274,
                                474
                            ],
                            [
                                168,
                                668
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                466,
                                90
                            ],
                            [
                                802,
                                84
                            ],
                            [
                                1274,
                                474
                            ],
                            [
                                168,
                                668
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ]
        },
        {
            "id": "130",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/901",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 1,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                300,
                                114
                            ],
                            [
                                740,
                                148
                            ],
                            [
                                1210,
                                698
                            ],
                            [
                                10,
                                692
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                300,
                                114
                            ],
                            [
                                740,
                                148
                            ],
                            [
                                1210,
                                698
                            ],
                            [
                                10,
                                692
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                },
                {
                    "action": "BARRIER_GATE",
                    "regions": [
                        [
                            [
                                30,
                                258
                            ],
                            [
                                774,
                                78
                            ]
                        ]
                    ]
                }
            ]
        },
        {
            "id": "131",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/1001",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 1,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                474,
                                92
                            ],
                            [
                                898,
                                112
                            ],
                            [
                                1108,
                                714
                            ],
                            [
                                8,
                                428
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                490,
                                98
                            ],
                            [
                                900,
                                112
                            ],
                            [
                                1106,
                                698
                            ],
                            [
                                12,
                                364
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "FIRE"
                },
                {
                    "action": "BARRIER_GATE",
                    "regions": [
                        [
                            [
                                468,
                                166
                            ],
                            [
                                1212,
                                208
                            ]
                        ]
                    ]
                }
            ]
        },
        {
            "id": "132",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/1101",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 3,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "STOP",
                    "regions": [
                        [
                            [
                                658,
                                34
                            ],
                            [
                                874,
                                30
                            ],
                            [
                                1182,
                                686
                            ],
                            [
                                28,
                                696
                            ]
                        ]
                    ]
                },
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                664,
                                42
                            ],
                            [
                                866,
                                50
                            ],
                            [
                                1188,
                                666
                            ],
                            [
                                90,
                                684
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "FIRE"
                }
            ]
        }
    ]
}
textjson/focus_monitor_gate.json
New file
@@ -0,0 +1,271 @@
{
    "version": "1.0",
    "show_screen": false,
    "show_board": false,
    "kafka_server": "192.168.0.78:9092",
    "kafka_topic": "vp_ba_result",
    "max_input_per_detection": 1,
    "ba_jam_config": {
        "check_interval_frames": 10,
        "check_max_distance": 150,
        "check_min_hit_frames": 5,
        "check_min_stops": 2,
        "check_notify_interval": 120,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_stop_config": {
        "check_interval_frames": 20,
        "check_max_distance": 100,
        "check_min_hit_frames": 120,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_person_gathering_config": {
        "check_interval_frames": 20,
        "check_min_hit_frames": 8,
        "check_notify_interval": 60,
        "person_gathering_distance_factor": 4,
        "min_gathering_person": 5,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_person_fall_down_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 20,
        "check_notify_interval": 60,
        "person_fall_down_threshold": 0.5,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_wrong_direction_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 5,
        "check_notify_interval": 60,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_barrier_gate_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 3,
        "check_notify_interval": 1,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_fire_smoke_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 5,
        "check_notify_interval": 60,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_junk_stack_config": {
        "check_interval_frames": 200,
        "check_min_hit_frames": 5,
        "check_notify_interval": 600,
        "need_record_image": true,
        "need_record_video": true
    },
    "channels": [
        {
            "id": "66",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2601",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 1,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                514,
                                10
                            ],
                            [
                                684,
                                20
                            ],
                            [
                                1260,
                                452
                            ],
                            [
                                10,
                                620
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "BARRIER_GATE",
                    "regions": [
                        [
                            [
                                424,
                                122
                            ],
                            [
                                816,
                                106
                            ]
                        ]
                    ]
                }
            ]
        },
        {
            "id": "79",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/701",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 1,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                496,
                                106
                            ],
                            [
                                820,
                                112
                            ],
                            [
                                1042,
                                688
                            ],
                            [
                                4,
                                256
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "BARRIER_GATE",
                    "regions": [
                        [
                            [
                                342,
                                238
                            ],
                            [
                                1142,
                                286
                            ]
                        ]
                    ]
                }
            ]
        },
        {
            "id": "130",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/901",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 1,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                300,
                                114
                            ],
                            [
                                740,
                                148
                            ],
                            [
                                1210,
                                698
                            ],
                            [
                                10,
                                692
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "BARRIER_GATE",
                    "regions": [
                        [
                            [
                                30,
                                258
                            ],
                            [
                                774,
                                78
                            ]
                        ]
                    ]
                }
            ]
        },
        {
            "id": "131",
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/1001",
            "source_type": "ffmpeg_rtsp",
            "skip_interval": 1,
            "resize_ratio": 0.5,
            "pix_width": 1280,
            "pix_height": 720,
            "actions": [
                {
                    "action": "JAM",
                    "regions": [
                        [
                            [
                                490,
                                98
                            ],
                            [
                                900,
                                112
                            ],
                            [
                                1106,
                                698
                            ],
                            [
                                12,
                                364
                            ]
                        ]
                    ],
                    "half_width": 2
                },
                {
                    "action": "BARRIER_GATE",
                    "regions": [
                        [
                            [
                                468,
                                166
                            ],
                            [
                                1212,
                                208
                            ]
                        ]
                    ]
                }
            ]
        }
    ]
}
textjson/newcameralist.json
New file
@@ -0,0 +1,2847 @@
{
    "version": "1.0",
    "kafka_server": "172.18.0.247:9092",
    "kafkaTopic": "vp_ba_result",
    "ba_jam_config": {
        "check_interval_frames": 10,
        "check_max_distance": 150,
        "check_min_hit_frames": 5,
        "check_min_stops": 2,
        "check_notify_interval": 120,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_stop_config": {
        "check_interval_frames": 20,
        "check_max_distance": 100,
        "check_min_hit_frames": 120,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_person_gathering_config": {
        "check_interval_frames": 1,
        "check_min_hit_frames": 1,
        "check_notify_interval": 10,
        "min_gathering_person": 3,
        "need_record_image": true,
        "need_record_video": true,
        "person_gathering_distance_factor": 4.0
    },
    "ba_wrong_direction_config": {
        "check_interval_frames": 5,
        "check_min_hit_frames": 25,
        "check_notify_interval": 10,
        "half_width": 320,
        "need_record_image": true,
        "need_record_video": true
    },
    "ba_barrier_gate_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 3,
        "check_notify_interval": 1,
        "need_record_image": false,
        "need_record_video": false
    },
    "ba_fire_smoke_config": {
        "check_interval_frames": 10,
        "check_min_hit_frames": 10,
        "check_notify_interval": 60,
        "need_record_image": true,
        "need_record_video": false
    },
    "ba_junk_stake_config": {
        "check_interval_frames": 200,
        "check_min_hit_frames": 5,
        "check_notify_interval": 600,
        "need_record_image": true,
        "need_record_video": false
    },
    "channels": [
        {
            "id": 9,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/101",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[560, 120], [706, 116], [1188, 698], [114, 700]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[520, 92], [712, 80], [1264, 488], [338, 700]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 10,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/202",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[538, 80], [692, 68], [1268, 476], [364, 700]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[560, 100], [692, 108], [880, 698], [40, 676]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 11,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/301",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[512, 144], [706, 138], [844, 688], [28, 706]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[512, 144], [706, 138], [844, 688], [28, 706]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 12,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/401",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[496, 80], [706, 80], [1016, 626], [160, 672]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[496, 80], [706, 80], [1016, 626], [160, 672]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                },
                {
                    "action": "WRONG_WAY",
                    "regions": [[
                            [
                                590,
                                118
                            ],
                            [
                                632,
                                512
                            ]
                        ], [
                            [
                                590,
                                118
                            ],
                            [
                                632,
                                512
                            ]
                        ]],
                    "half_width": 360
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 13,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/501",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[448, 148], [692, 128], [972, 684], [18, 684]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[448, 148], [692, 128], [972, 684], [18, 684]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 14,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/601",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[600, 76], [716, 84], [1226, 668], [324, 712]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[600, 76], [716, 84], [1226, 668], [324, 712]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 15,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/701",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[548, 154], [692, 144], [1080, 700], [252, 684]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[548, 154], [692, 144], [1080, 700], [252, 684]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 16,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/801",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[560, 114], [708, 136], [1024, 674], [168, 658]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[560, 114], [708, 136], [1024, 674], [168, 658]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 17,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/901",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[530, 98], [730, 96], [1146, 690], [40, 700]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[530, 98], [730, 96], [1146, 690], [40, 700]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 18,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1001",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[592, 114], [700, 112], [1244, 704], [474, 700]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[592, 114], [700, 112], [1244, 704], [474, 700]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 19,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1101",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[554, 128], [772, 112], [1226, 692], [264, 700]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[554, 128], [772, 112], [1226, 692], [264, 700]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 20,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1201",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[564, 122], [704, 128], [1080, 708], [210, 716]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[564, 122], [704, 128], [1080, 708], [210, 716]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 21,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1301",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[594, 98], [690, 96], [1058, 690], [232, 700]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[594, 98], [690, 96], [1058, 690], [232, 700]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 22,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1401",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[578, 122], [804, 138], [1154, 700], [100, 698]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[578, 122], [804, 138], [1154, 700], [100, 698]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 23,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1501",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[586, 100], [714, 98], [1168, 684], [258, 700]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[586, 100], [714, 98], [1168, 684], [258, 700]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 24,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1601",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[520, 92], [642, 76], [906, 688], [18, 698]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[520, 92], [642, 76], [906, 688], [18, 698]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 25,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1701",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[530, 76], [816, 90], [1256, 684], [18, 700]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[530, 76], [816, 90], [1256, 684], [18, 700]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 26,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/1801",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[552, 72], [696, 76], [940, 714], [64, 698]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[552, 72], [696, 76], [940, 714], [64, 698]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 30,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2201",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[554, 64], [652, 60], [1034, 706], [128, 700]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[554, 64], [652, 60], [1034, 706], [128, 700]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 31,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2301",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[546, 64], [664, 52], [1208, 682], [208, 700]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[546, 64], [664, 52], [1208, 682], [208, 700]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 32,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2401",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[554, 68], [708, 50], [1074, 696], [260, 688]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[554, 68], [708, 50], [1074, 696], [260, 688]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 33,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2501",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[560, 90], [676, 84], [1148, 688], [284, 696]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[560, 90], [676, 84], [1148, 688], [284, 696]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 34,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2601",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[560, 154], [720, 144], [1164, 688], [120, 696]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[560, 154], [720, 144], [1164, 688], [120, 696]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 35,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2701",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[508, 106], [704, 84], [1066, 688], [84, 706]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[508, 106], [704, 84], [1066, 688], [84, 706]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 36,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2801",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[524, 80], [800, 76], [1266, 642], [52, 634]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[524, 80], [800, 76], [1266, 642], [52, 634]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 37,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/2901",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[522, 56], [720, 60], [1020, 708], [42, 692]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[522, 56], [720, 60], [1020, 708], [42, 692]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 38,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/3001",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[602, 42], [692, 40], [1130, 698], [322, 704]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[602, 42], [692, 40], [1130, 698], [322, 704]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 39,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/3101",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[530, 68], [668, 72], [992, 700], [120, 704]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[530, 68], [668, 72], [992, 700], [120, 704]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 40,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.241:554/Streaming/Channels/3201",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[584, 56], [700, 48], [1154, 706], [280, 704]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[584, 56], [700, 48], [1154, 706], [280, 704]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 41,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/101",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[564, 50], [680, 42], [1016, 700], [68, 700]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[564, 50], [680, 42], [1016, 700], [68, 700]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 42,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/202",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[560, 112], [680, 92], [1106, 704], [224, 704]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[560, 112], [680, 92], [1106, 704], [224, 704]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 43,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/301",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[458, 84], [608, 88], [1258, 698], [232, 698]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[458, 84], [608, 88], [1258, 698], [232, 698]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 44,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/401",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[490, 104], [730, 84], [1210, 716], [60, 692]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[490, 104], [730, 84], [1210, 716], [60, 692]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 45,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/501",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[520, 64], [682, 48], [1242, 668], [148, 682]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[520, 64], [682, 48], [1242, 668], [148, 682]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 46,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/601",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[568, 106], [730, 114], [1160, 680], [234, 672]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[568, 106], [730, 114], [1160, 680], [234, 672]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 47,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/701",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[536, 64], [730, 68], [1266, 626], [58, 692]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[536, 64], [730, 68], [1266, 626], [58, 692]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 48,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/801",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[560, 76], [722, 76], [1148, 704], [18, 642]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[560, 76], [722, 76], [1148, 704], [18, 642]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 49,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/901",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[544, 52], [690, 44], [1088, 698], [44, 704]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[544, 52], [690, 44], [1088, 698], [44, 704]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 50,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1001",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[554, 60], [746, 42], [1064, 700], [10, 684]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[554, 60], [746, 42], [1064, 700], [10, 684]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 51,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1101",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[540, 64], [728, 56], [1264, 498], [258, 684]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[540, 64], [728, 56], [1264, 498], [258, 684]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 52,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1201",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[562, 100], [786, 100], [1258, 648], [82, 692]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[562, 100], [786, 100], [1258, 648], [82, 692]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 53,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1301",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[588, 84], [728, 84], [1250, 680], [132, 696]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[588, 84], [728, 84], [1250, 680], [132, 696]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 54,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1401",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[600, 68], [746, 56], [1144, 712], [12, 698]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[600, 68], [746, 56], [1144, 712], [12, 698]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 55,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1501",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[508, 76], [752, 64], [1258, 596], [192, 698]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[508, 76], [752, 64], [1258, 596], [192, 698]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 56,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1601",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[554, 76], [732, 64], [1188, 698], [92, 692]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[554, 76], [732, 64], [1188, 698], [92, 692]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 57,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1701",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[552, 84], [706, 76], [1194, 692], [132, 700]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[552, 84], [706, 76], [1194, 692], [132, 700]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 58,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1801",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[560, 50], [684, 42], [1042, 700], [84, 700]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[560, 50], [684, 42], [1042, 700], [84, 700]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 59,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/1901",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[554, 100], [770, 106], [1192, 700], [18, 704]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[554, 100], [770, 106], [1192, 700], [18, 704]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 60,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2001",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[532, 120], [748, 114], [1180, 684], [124, 700]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[532, 120], [748, 114], [1180, 684], [124, 700]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 61,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2101",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[500, 116], [704, 96], [1276, 436], [560, 698]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[500, 116], [704, 96], [1276, 436], [560, 698]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 62,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2201",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[452, 72], [600, 68], [1240, 706], [50, 698]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[452, 72], [600, 68], [1240, 706], [50, 698]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 63,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2301",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[538, 52], [716, 56], [1122, 704], [84, 712]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[538, 52], [716, 56], [1122, 704], [84, 712]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 64,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2401",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[482, 48], [816, 40], [1266, 684], [2, 688]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[482, 48], [816, 40], [1266, 684], [2, 688]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 65,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2501",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[554, 104], [698, 80], [1266, 700], [74, 696]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[554, 104], [698, 80], [1266, 700], [74, 696]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 66,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2601",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[514, 10], [684, 20], [1260, 452], [10, 620]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[514, 10], [684, 20], [1260, 452], [10, 620]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                },
                {
                    "action": "BARRIER_GATE",
                    "regions": [
                        [
                            [
                                424,
                                122
                            ],
                            [
                                816,
                                106
                            ]
                        ]
                    ]
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 67,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2701",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[444, 84], [786, 68], [1264, 500], [8, 698]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[444, 84], [786, 68], [1264, 500], [8, 698]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 68,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2801",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[412, 120], [700, 114], [1210, 698], [20, 706]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[412, 120], [700, 114], [1210, 698], [20, 706]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 69,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/2901",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[328, 120], [1168, 252], [1256, 698], [18, 690]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[328, 120], [1168, 252], [1256, 698], [18, 690]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 70,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/3001",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[554, 32], [772, 48], [1264, 692], [18, 688]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[554, 32], [772, 48], [1264, 692], [18, 688]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 71,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/3101",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[524, 72], [660, 64], [1156, 692], [52, 704]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[524, 72], [660, 64], [1156, 692], [52, 704]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 72,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.242:554/Streaming/Channels/3201",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[554, 84], [700, 80], [1146, 714], [124, 706]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[554, 84], [700, 80], [1146, 714], [124, 706]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 73,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/101",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[580, 68], [696, 64], [1268, 642], [400, 712]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[580, 68], [696, 64], [1268, 642], [400, 712]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 74,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/202",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[664, 84], [808, 80], [1272, 562], [418, 712]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[664, 84], [808, 80], [1272, 562], [418, 712]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 75,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/301",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[532, 60], [676, 56], [890, 708], [2, 578]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[532, 60], [676, 56], [890, 708], [2, 578]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 76,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/401",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[562, 84], [720, 84], [1188, 700], [40, 712]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[562, 84], [720, 84], [1188, 700], [40, 712]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 77,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/501",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[520, 76], [696, 98], [1140, 698], [88, 706]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[520, 76], [696, 98], [1140, 698], [88, 706]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 78,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/601",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[410, 60], [1082, 128], [1276, 356], [4, 700]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[410, 60], [1082, 128], [1276, 356], [4, 700]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                },
                {
                    "action": "WRONG_WAY",
                    "regions": [[
                            [
                                864,
                                120
                            ],
                            [
                                1010,
                                630
                            ]
                        ], [
                            [
                                864,
                                120
                            ],
                            [
                                1010,
                                630
                            ]
                        ]],
                    "half_width": 360
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 79,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/701",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[496, 106], [820, 112], [1042, 688], [4, 256]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[496, 106], [820, 112], [1042, 688], [4, 256]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                },
                {
                    "action": "WRONG_WAY",
                    "regions": [[
                            [
                                264,
                                640
                            ],
                            [
                                484,
                                146
                            ]
                        ], [
                            [
                                264,
                                640
                            ],
                            [
                                484,
                                146
                            ]
                        ]],
                    "half_width": 360
                },
                {
                    "action": "BARRIER_GATE",
                    "regions": [
                        [
                            [
                                342,
                                238
                            ],
                            [
                                1142,
                                286
                            ]
                        ]
                    ]
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 80,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/801",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[508, 48], [666, 32], [1266, 530], [194, 554]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[508, 48], [666, 32], [1266, 530], [194, 554]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                },
                {
                    "action": "WRONG_WAY",
                    "regions": [
                        null
                    ],
                    "half_width": 360
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 81,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/901",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[626, 106], [836, 122], [1194, 714], [132, 684]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[626, 106], [836, 122], [1194, 714], [132, 684]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 82,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1001",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[504, 90], [682, 96], [994, 714], [10, 684]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[504, 90], [682, 96], [994, 714], [10, 684]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 83,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1101",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[634, 68], [808, 100], [644, 704], [8, 410]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[634, 68], [808, 100], [644, 704], [8, 410]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 84,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1201",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[604, 48], [730, 44], [1162, 706], [74, 704]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[604, 48], [730, 44], [1162, 706], [74, 704]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 85,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1301",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[656, 50], [772, 60], [1264, 672], [218, 698]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[656, 50], [772, 60], [1264, 672], [218, 698]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 86,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1401",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[576, 72], [736, 76], [1148, 690], [82, 692]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[576, 72], [736, 76], [1148, 690], [82, 692]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 87,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1501",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[568, 98], [832, 84], [1264, 544], [122, 690]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[568, 98], [832, 84], [1264, 544], [122, 690]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 88,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1601",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[650, 64], [1024, 68], [1268, 712], [10, 288]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[650, 64], [1024, 68], [1268, 712], [10, 288]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 118,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1701",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[560, 136], [730, 128], [1212, 700], [186, 708]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[560, 136], [730, 128], [1212, 700], [186, 708]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 119,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1801",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[586, 72], [728, 68], [1216, 716], [202, 712]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[586, 72], [728, 68], [1216, 716], [202, 712]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 120,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/1901",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[480, 10], [664, 18], [1242, 708], [122, 690]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[480, 10], [664, 18], [1242, 708], [122, 690]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 121,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.243:554/Streaming/Channels/2001",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[496, 84], [668, 84], [1172, 714], [120, 698]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[496, 84], [668, 84], [1172, 714], [120, 698]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 122,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/101",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[576, 80], [706, 76], [1098, 708], [168, 688]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[576, 80], [706, 76], [1098, 708], [168, 688]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 123,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/202",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[560, 72], [960, 84], [1236, 712], [20, 634]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[560, 72], [960, 84], [1236, 712], [20, 634]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 124,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/301",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[604, 68], [810, 52], [1272, 572], [12, 610]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[604, 68], [810, 52], [1272, 572], [12, 610]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                },
                {
                    "action": "WRONG_WAY",
                    "regions": [
                        null
                    ]
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 125,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/401",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[416, 112], [736, 114], [1250, 700], [10, 612]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[416, 112], [736, 114], [1250, 700], [10, 612]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 126,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/501",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[512, 88], [738, 96], [1260, 516], [80, 712]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[512, 88], [738, 96], [1260, 516], [80, 712]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 127,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/601",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[474, 92], [706, 84], [1058, 706], [12, 452]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[474, 92], [706, 84], [1058, 706], [12, 452]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 128,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/701",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[488, 96], [720, 84], [1066, 692], [0, 552]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[488, 96], [720, 84], [1066, 692], [0, 552]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 129,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/801",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[466, 90], [802, 84], [1274, 474], [168, 668]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[466, 90], [802, 84], [1274, 474], [168, 668]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 130,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/901",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[300, 114], [740, 148], [1210, 698], [10, 692]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[300, 114], [740, 148], [1210, 698], [10, 692]]],
                    "half_width": 2
                },
                {
                    "action": "FALL"
                },
                {
                    "action": "JUNK_STACK"
                },
                {
                    "action": "CROWD_GATHERING"
                },
                {
                    "action": "FIRE"
                },
                {
                    "action": "BARRIER_GATE",
                    "regions": [
                        [
                            [
                                30,
                                258
                            ],
                            [
                                774,
                                78
                            ]
                        ]
                    ]
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 131,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/1001",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[474, 92], [898, 112], [1108, 714], [8, 428]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[490, 98], [900, 112], [1106, 698], [12, 364]]],
                    "half_width": 2
                },
                {
                    "action": "BARRIER_GATE",
                    "regions": [
                        [
                            [
                                102,
                                216
                            ],
                            [
                                936,
                                230
                            ]
                        ]
                    ]
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        },
        {
            "id": 132,
            "url": "rtsp://admin:Shmixcqwe%21%40%23@172.18.0.244:554/Streaming/Channels/1101",
            "actions": [
                {
                    "action": "STOP",
                    "regions": [[[658, 34], [874, 30], [1182, 686], [28, 696]]]
                },
                {
                    "action": "JAM",
                    "regions": [[[664, 42], [866, 50], [1188, 666], [90, 684]]],
                    "half_width": 2
                }
            ],
            "pix_width": 1280,
            "pix_height": 720
        }
    ]
}
textjson/process_list.json
New file
@@ -0,0 +1,8 @@
{
    "process_list": [
        {"program_path": "gnome-terminal", "commands": "top -H", "process_name": "top"}
    ],
    "interval_monitor_seconds": 10,
    "stop_start_hour": 0,
    "stop_end_hour": 5
}
trans_cameralist.py
New file
@@ -0,0 +1,35 @@
import json
def format_regions(regions):
    """格式化坐标数组为字符串"""
    return ",".join(f"({x},{y})" for x, y in regions)
def parse_camera_list(file_path):
    with open(file_path, 'r', encoding='utf-8') as file:
        data = json.load(file)
    output_lines = []
    for channel in data.get("channels", []):
        channel_id = channel.get("id")
        url = channel.get("url")
        for action in channel.get("actions", []):
            action_type = action.get("action")
            if action_type == "JAM":
                regions = action.get("regions", [])
                formatted_regions = format_regions(regions)
                line = f"{url} 0.5 172.18.0.247:9092 3 {channel_id} true {formatted_regions}"
                output_lines.append(line)
    return output_lines
if __name__ == "__main__":
    # æ›¿æ¢ä¸ºä½ çš„æ–‡ä»¶è·¯å¾„
    file_path = "camera.list.txt"
    # è§£æžå¹¶è¾“出结果
    result = parse_camera_list(file_path)
    for line in result:
        print(line)
wxc.config.json
New file
Diff too large