matrice 1.0.99271__py3-none-any.whl → 1.0.99273__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/utils/post_processing/usecases/fire_detection.py +14 -3
- {matrice-1.0.99271.dist-info → matrice-1.0.99273.dist-info}/METADATA +1 -1
- {matrice-1.0.99271.dist-info → matrice-1.0.99273.dist-info}/RECORD +6 -6
- {matrice-1.0.99271.dist-info → matrice-1.0.99273.dist-info}/WHEEL +0 -0
- {matrice-1.0.99271.dist-info → matrice-1.0.99273.dist-info}/licenses/LICENSE.txt +0 -0
- {matrice-1.0.99271.dist-info → matrice-1.0.99273.dist-info}/top_level.txt +0 -0
@@ -232,10 +232,16 @@ class FireSmokeUseCase(BaseProcessor):
|
|
232
232
|
tracking_stats = tracking_stats_list[0] if tracking_stats_list else {}
|
233
233
|
#EVENT ENDED SIGNAL
|
234
234
|
|
235
|
-
if len(tracking_stats_list)
|
235
|
+
if len(tracking_stats_list)>1:
|
236
236
|
alerts = tracking_stats_list[1]
|
237
237
|
incidents = tracking_stats_list[2]
|
238
238
|
tracking_stats = tracking_stats_list[0]
|
239
|
+
print("-----------------------------------------------------########-------------")
|
240
|
+
print('alerts',alerts)
|
241
|
+
print('incidents',incidents)
|
242
|
+
print('tracking_stats',tracking_stats)
|
243
|
+
print('FRAME_NUMBER',str(frame_number))
|
244
|
+
print("-----------------------------------------------------########-------------")
|
239
245
|
|
240
246
|
business_analytics = business_analytics_list[0] if business_analytics_list else {}
|
241
247
|
summary = summary_list[0] if summary_list else {}
|
@@ -304,7 +310,9 @@ class FireSmokeUseCase(BaseProcessor):
|
|
304
310
|
return alerts
|
305
311
|
|
306
312
|
if hasattr(config.alert_config, 'count_thresholds') and config.alert_config.count_thresholds:
|
307
|
-
|
313
|
+
# Safely fetch the last recorded severity level as a **string** (empty if no history yet)
|
314
|
+
last_level = self._ascending_alert_list[-1] if self._ascending_alert_list else "low"
|
315
|
+
alert_id = self._get_alert_incident_ids(last_level)
|
308
316
|
|
309
317
|
count_thresholds = {}
|
310
318
|
if config.alert_config and hasattr(config.alert_config, "count_thresholds"):
|
@@ -464,7 +472,9 @@ class FireSmokeUseCase(BaseProcessor):
|
|
464
472
|
human_text_lines.append(f"\tSeverity Level: {(self.CASE_TYPE,level)}")
|
465
473
|
human_text = "\n".join(human_text_lines)
|
466
474
|
|
467
|
-
|
475
|
+
# Pass the last severity level **value** instead of a single-element list
|
476
|
+
last_level = level if level else self._ascending_alert_list[-1]
|
477
|
+
incident_id = self._get_alert_incident_ids(last_level)
|
468
478
|
|
469
479
|
alert_settings=[]
|
470
480
|
if config.alert_config and hasattr(config.alert_config, 'alert_type'):
|
@@ -620,6 +630,7 @@ class FireSmokeUseCase(BaseProcessor):
|
|
620
630
|
|
621
631
|
if len(self.id_hit_list)==1:
|
622
632
|
last_ending_id = self._get_alert_incident_ids("")
|
633
|
+
print('last_ending_id',last_ending_id)
|
623
634
|
if last_ending_id==5:
|
624
635
|
tracking_stats.append({
|
625
636
|
"alert_type": getattr(config.alert_config, 'alert_type', ['Default']) if hasattr(config.alert_config, 'alert_type') else ['Default'],
|
@@ -182,7 +182,7 @@ matrice/deploy/utils/post_processing/usecases/face_emotion.py,sha256=eRfqBdryB0u
|
|
182
182
|
matrice/deploy/utils/post_processing/usecases/face_recognition.py,sha256=T5xAuv6b9OrkmTmoXgZs4LZ5XUsbvp9xCpeLBwdu7eI,40231
|
183
183
|
matrice/deploy/utils/post_processing/usecases/fashion_detection.py,sha256=f9gpzMDhIW-gyn46k9jgf8nY7YeoqAnTxGOzksabFbE,40457
|
184
184
|
matrice/deploy/utils/post_processing/usecases/field_mapping.py,sha256=JDwYX8pd2W-waDvBh98Y_o_uchJu7wEYbFxOliA4Iq4,39822
|
185
|
-
matrice/deploy/utils/post_processing/usecases/fire_detection.py,sha256=
|
185
|
+
matrice/deploy/utils/post_processing/usecases/fire_detection.py,sha256=iGsTciE54AnuGf8tDmgIIAXpuCyFTcU_qOTRPsxo2gA,48549
|
186
186
|
matrice/deploy/utils/post_processing/usecases/flare_analysis.py,sha256=-egmS3Hs_iGOLeCMfapbkfQ04EWtZx97QRuUcDa-jMU,45340
|
187
187
|
matrice/deploy/utils/post_processing/usecases/flower_segmentation.py,sha256=4I7qMx9Ztxg_hy9KTVX-3qBhAN-QwDt_Yigf9fFjLus,52017
|
188
188
|
matrice/deploy/utils/post_processing/usecases/gas_leak_detection.py,sha256=KL2ft7fXvjTas-65-QgcJm3W8KBsrwF44qibSXjfaLc,40557
|
@@ -243,8 +243,8 @@ matrice/deployment/camera_manager.py,sha256=e1Lc81RJP5wUWRdTgHO6tMWF9BkBdHOSVyx3
|
|
243
243
|
matrice/deployment/deployment.py,sha256=HFt151eWq6iqIAMsQvurpV2WNxW6Cx_gIUVfnVy5SWE,48093
|
244
244
|
matrice/deployment/inference_pipeline.py,sha256=6b4Mm3-qt-Zy0BeiJfFQdImOn3FzdNCY-7ET7Rp8PMk,37911
|
245
245
|
matrice/deployment/streaming_gateway_manager.py,sha256=ifYGl3g25wyU39HwhPQyI2OgF3M6oIqKMWt8RXtMxY8,21401
|
246
|
-
matrice-1.0.
|
247
|
-
matrice-1.0.
|
248
|
-
matrice-1.0.
|
249
|
-
matrice-1.0.
|
250
|
-
matrice-1.0.
|
246
|
+
matrice-1.0.99273.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
|
247
|
+
matrice-1.0.99273.dist-info/METADATA,sha256=Zu1ooyc7gmPiF9mrhwDdcRn2wewobwm1aXdxTN9ZKnk,14624
|
248
|
+
matrice-1.0.99273.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
249
|
+
matrice-1.0.99273.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
|
250
|
+
matrice-1.0.99273.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|