| New file |
| | |
| | | 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) |
| New file |
| | |
| | | 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) |
| New file |
| | |
| | | |
| | | |
| | | 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" |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| New file |
| | |
| | | [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 |
| New file |
| | |
| | | [KAFKA] |
| | | server = 38.55.194.83:9092 |
| | | topics = vp_ba_jam, vp_ba_stop, vp_ba_crossline, vp_tracking |
| | | |
| | | [OUTPUT] |
| | | file = kafka_messages.txt |
| New file |
| | |
| | | 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}") |
| New file |
| | |
| | | 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ä¸è½æ§è¡ã
|
| | | ''' |
| New file |
| | |
| | | # -*- 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, |
| | | ) |
| New file |
| | |
| | | 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()
|
| New file |
| | |
| | | # -*- 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, |
| | | ) |
| New file |
| | |
| | | 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() |
| New file |
| | |
| | | # -*- 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, |
| | | ) |
| New file |
| | |
| | | [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 |
| New file |
| | |
| | | 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 |
| New file |
| | |
| | | #!/bin/bash |
| | | /home/pc1/Public/kafka_samples/main --config /home/pc1/Public/kafka_samples/msg_config.ini & |
| | | echo $! > /home/pc1/parkwatch.pid |
| New file |
| | |
| | | #!/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 |
| New file |
| | |
| | | 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 |
| | | } |
| New file |
| | |
| | | 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 |
| New file |
| | |
| | | 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) |
| New file |
| | |
| | | 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 |
| New file |
| | |
| | | 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}") |
| New file |
| | |
| | | # -*- 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, |
| | | ) |
| New file |
| | |
| | | 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}") |
| New file |
| | |
| | | # -*- 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, |
| | | ) |
| New file |
| | |
| | | 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ç§å¯å¨ä¸ä¸ª,ç´å°ææç¨åºå¯å¨å®æ¯; |
| | | |
| | | ''' |
| New file |
| | |
| | | # -*- 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, |
| | | ) |
| New file |
| | |
| | | { |
| | | "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 |
| | | } |
| | | } |
| New file |
| | |
| | | {"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}]} |
| New file |
| | |
| | | { |
| | | "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 |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| New file |
| | |
| | | { |
| | | "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" |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| New file |
| | |
| | | { |
| | | "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" |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| New file |
| | |
| | | { |
| | | "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 |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| New file |
| | |
| | | { |
| | | "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" |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| New file |
| | |
| | | { |
| | | "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" |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| New file |
| | |
| | | { |
| | | "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" |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| New file |
| | |
| | | { |
| | | "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" |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| New file |
| | |
| | | { |
| | | "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" |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| New file |
| | |
| | | { |
| | | "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 |
| | | ] |
| | | ] |
| | | ] |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| New file |
| | |
| | | { |
| | | "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 |
| | | } |
| | | ] |
| | | } |
| New file |
| | |
| | | {
|
| | | "process_list": [
|
| | | {"program_path": "gnome-terminal", "commands": "top -H", "process_name": "top"} |
| | | ],
|
| | | "interval_monitor_seconds": 10,
|
| | | "stop_start_hour": 0,
|
| | | "stop_end_hour": 5
|
| | | } |
| New file |
| | |
| | | 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) |