matrice 1.0.99291__py3-none-any.whl → 1.0.99293__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- matrice/deploy/client/streaming_gateway/streaming_gateway_utils.py +3 -3
- matrice/deploy/utils/post_processing/usecases/fire_detection.py +11 -4
- {matrice-1.0.99291.dist-info → matrice-1.0.99293.dist-info}/METADATA +1 -1
- {matrice-1.0.99291.dist-info → matrice-1.0.99293.dist-info}/RECORD +7 -7
- {matrice-1.0.99291.dist-info → matrice-1.0.99293.dist-info}/WHEEL +0 -0
- {matrice-1.0.99291.dist-info → matrice-1.0.99293.dist-info}/licenses/LICENSE.txt +0 -0
- {matrice-1.0.99291.dist-info → matrice-1.0.99293.dist-info}/top_level.txt +0 -0
@@ -339,9 +339,9 @@ class _RealTimeJsonEventPicker:
|
|
339
339
|
|
340
340
|
def send_api_call(self,json_data):
|
341
341
|
headers = {'Content-Type': 'application/json'}
|
342
|
-
API_URL = "https://monthly-genuine-troll.ngrok-free.app" #https://matricedemo.forumalertcloud.io/matriceapi/
|
343
|
-
API_USER = "admin" #"matrice"
|
344
|
-
API_PASS = "admin" #"hR9aN9mQ"
|
342
|
+
API_URL = "https://matricedemo.forumalertcloud.io/matriceapi/" #"https://monthly-genuine-troll.ngrok-free.app" #https://matricedemo.forumalertcloud.io/matriceapi/
|
343
|
+
API_USER = "matrice" #"admin" #"matrice"
|
344
|
+
API_PASS = "hR9aN9mQ" #"admin" #"hR9aN9mQ"
|
345
345
|
try:
|
346
346
|
response = requests.post(
|
347
347
|
API_URL,
|
@@ -343,7 +343,7 @@ class FireSmokeUseCase(BaseProcessor):
|
|
343
343
|
if count > threshold: # Fixed logic: alert when EXCEEDING threshold
|
344
344
|
alerts.append({
|
345
345
|
"alert_type": getattr(config.alert_config, 'alert_type', ['Default']) if hasattr(config.alert_config, 'alert_type') else ['Default'],
|
346
|
-
"alert_id": "alert_"+category+'_'+str(alert_id),
|
346
|
+
"alert_id": "alert_"+category+'_'+alert_serial+'_'+str(alert_id),
|
347
347
|
"incident_category": self.CASE_TYPE,
|
348
348
|
"threshold_level": threshold,
|
349
349
|
"ascending": get_trend(self._ascending_alert_list, lookback=23, prior=14),
|
@@ -644,13 +644,19 @@ class FireSmokeUseCase(BaseProcessor):
|
|
644
644
|
|
645
645
|
if len(self.id_hit_list)==1:
|
646
646
|
last_ending_id, incident_id = self._get_alert_incident_ids("",stream_info)
|
647
|
-
print('last_ending_id',last_ending_id)
|
647
|
+
print('last_ending_id',last_ending_id, incident_id, self.return_id_counter)
|
648
648
|
if len(self.id_timing_list)>0 and len(self.id_timing_list)>=5:
|
649
649
|
start_timestamp = self.id_timing_list[-1]
|
650
|
+
if incident_id==self.return_id_counter:
|
651
|
+
incident_id = incident_id-1
|
652
|
+
if self.return_id_counter > incident_id:
|
653
|
+
incident_id = self.return_id_counter-incident_id
|
650
654
|
if last_ending_id==5:
|
655
|
+
alert_serial = getattr(config.alert_config, 'alert_type', ['Default']) if hasattr(config.alert_config, 'alert_type') else ['Default']
|
656
|
+
alert_serial = alert_serial[0]
|
651
657
|
alerts=[{
|
652
658
|
"alert_type": getattr(config.alert_config, 'alert_type', ['Default']) if hasattr(config.alert_config, 'alert_type') else ['Default'],
|
653
|
-
"alert_id": "alert_"+'Event_Ended'+'_'+str(
|
659
|
+
"alert_id": "alert_"+'Event_Ended'+'_'+alert_serial+'_'+str(incident_id),
|
654
660
|
"incident_category": self.CASE_TYPE,
|
655
661
|
"threshold_level": 0,
|
656
662
|
"ascending": False,
|
@@ -659,7 +665,8 @@ class FireSmokeUseCase(BaseProcessor):
|
|
659
665
|
}
|
660
666
|
}]
|
661
667
|
tracking_stats.append(alerts)
|
662
|
-
tracking_stats
|
668
|
+
tracking_stats[0]['alerts']=alerts
|
669
|
+
tracking_stats.append(self.create_incident(incident_id='incident_'+self.CASE_TYPE+'_'+str(incident_id), incident_type=self.CASE_TYPE,
|
663
670
|
severity_level='info', human_text='Event Over', camera_info=camera_info, alerts=alerts, alert_settings=alert_settings,
|
664
671
|
start_time=start_timestamp, end_time='Incident still active',
|
665
672
|
level_settings= {"low": 3, "medium": 5, "significant":15, "critical": 30}))
|
@@ -109,7 +109,7 @@ matrice/deploy/client/auto_streaming/auto_streaming.py,sha256=VRfy_EBFvhspN-hoN3
|
|
109
109
|
matrice/deploy/client/auto_streaming/auto_streaming_utils.py,sha256=BuRUokLp3t43yzRF8YSX9p_RHQD94RoBwNEoldXFDQo,14995
|
110
110
|
matrice/deploy/client/streaming_gateway/__init__.py,sha256=hkYC0qszaXZThquMuuI20Qkt_AHCB3pdy7jlJVeqPN4,1203
|
111
111
|
matrice/deploy/client/streaming_gateway/streaming_gateway.py,sha256=r8Z5AXBom89n-8W5RTlB-nOeUaprxK-QBDsAb-E9gl8,19605
|
112
|
-
matrice/deploy/client/streaming_gateway/streaming_gateway_utils.py,sha256=
|
112
|
+
matrice/deploy/client/streaming_gateway/streaming_gateway_utils.py,sha256=Avp0LKUeBaYvGMLfGJKK0Wygb6fA4de8fT9IILIb9Go,42774
|
113
113
|
matrice/deploy/client/streaming_gateway/streaming_results_handler.py,sha256=OpHkdbnuqVN28tQm9CYwrfgAth3Qz40Uaq5Tg4bbxyo,15813
|
114
114
|
matrice/deploy/server/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
115
115
|
matrice/deploy/server/server.py,sha256=duki4KUU1tvW3Y7wkrlMRVvt7bAP2QqSIsrSogLxC4o,36799
|
@@ -183,7 +183,7 @@ matrice/deploy/utils/post_processing/usecases/face_emotion.py,sha256=eRfqBdryB0u
|
|
183
183
|
matrice/deploy/utils/post_processing/usecases/face_recognition.py,sha256=T5xAuv6b9OrkmTmoXgZs4LZ5XUsbvp9xCpeLBwdu7eI,40231
|
184
184
|
matrice/deploy/utils/post_processing/usecases/fashion_detection.py,sha256=f9gpzMDhIW-gyn46k9jgf8nY7YeoqAnTxGOzksabFbE,40457
|
185
185
|
matrice/deploy/utils/post_processing/usecases/field_mapping.py,sha256=JDwYX8pd2W-waDvBh98Y_o_uchJu7wEYbFxOliA4Iq4,39822
|
186
|
-
matrice/deploy/utils/post_processing/usecases/fire_detection.py,sha256=
|
186
|
+
matrice/deploy/utils/post_processing/usecases/fire_detection.py,sha256=V3ZV8FxdYwPqy-6jVYBwWgAp9bCLwW6QIHmg79SXgbs,50700
|
187
187
|
matrice/deploy/utils/post_processing/usecases/flare_analysis.py,sha256=-egmS3Hs_iGOLeCMfapbkfQ04EWtZx97QRuUcDa-jMU,45340
|
188
188
|
matrice/deploy/utils/post_processing/usecases/flower_segmentation.py,sha256=4I7qMx9Ztxg_hy9KTVX-3qBhAN-QwDt_Yigf9fFjLus,52017
|
189
189
|
matrice/deploy/utils/post_processing/usecases/gas_leak_detection.py,sha256=KL2ft7fXvjTas-65-QgcJm3W8KBsrwF44qibSXjfaLc,40557
|
@@ -244,8 +244,8 @@ matrice/deployment/camera_manager.py,sha256=e1Lc81RJP5wUWRdTgHO6tMWF9BkBdHOSVyx3
|
|
244
244
|
matrice/deployment/deployment.py,sha256=HFt151eWq6iqIAMsQvurpV2WNxW6Cx_gIUVfnVy5SWE,48093
|
245
245
|
matrice/deployment/inference_pipeline.py,sha256=6b4Mm3-qt-Zy0BeiJfFQdImOn3FzdNCY-7ET7Rp8PMk,37911
|
246
246
|
matrice/deployment/streaming_gateway_manager.py,sha256=ifYGl3g25wyU39HwhPQyI2OgF3M6oIqKMWt8RXtMxY8,21401
|
247
|
-
matrice-1.0.
|
248
|
-
matrice-1.0.
|
249
|
-
matrice-1.0.
|
250
|
-
matrice-1.0.
|
251
|
-
matrice-1.0.
|
247
|
+
matrice-1.0.99293.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
|
248
|
+
matrice-1.0.99293.dist-info/METADATA,sha256=xyCxkD0NqaAD3DCca-4mZdEmaBLtErgq974VHsi5Lrg,14624
|
249
|
+
matrice-1.0.99293.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
250
|
+
matrice-1.0.99293.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
|
251
|
+
matrice-1.0.99293.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|