matrice 1.0.99161__py3-none-any.whl → 1.0.99162__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 +12 -10
- {matrice-1.0.99161.dist-info → matrice-1.0.99162.dist-info}/METADATA +1 -1
- {matrice-1.0.99161.dist-info → matrice-1.0.99162.dist-info}/RECORD +6 -6
- {matrice-1.0.99161.dist-info → matrice-1.0.99162.dist-info}/WHEEL +0 -0
- {matrice-1.0.99161.dist-info → matrice-1.0.99162.dist-info}/licenses/LICENSE.txt +0 -0
- {matrice-1.0.99161.dist-info → matrice-1.0.99162.dist-info}/top_level.txt +0 -0
@@ -40,10 +40,10 @@ class FireSmokeConfig(BaseConfig):
|
|
40
40
|
|
41
41
|
# Only fire and smoke categories included here (exclude normal)
|
42
42
|
fire_smoke_categories: List[str] = field(
|
43
|
-
default_factory=lambda: ["
|
43
|
+
default_factory=lambda: ["fire", "smoke"]
|
44
44
|
)
|
45
45
|
target_categories: List[str] = field(
|
46
|
-
default_factory=lambda: ['
|
46
|
+
default_factory=lambda: ['fire']
|
47
47
|
)
|
48
48
|
|
49
49
|
alert_config: Optional[AlertConfig] = None
|
@@ -54,8 +54,8 @@ class FireSmokeConfig(BaseConfig):
|
|
54
54
|
# Map only fire and smoke; ignore normal (index 1 not included)
|
55
55
|
index_to_category: Optional[Dict[int, str]] = field(
|
56
56
|
default_factory=lambda: {
|
57
|
-
0: "
|
58
|
-
1: "
|
57
|
+
0: "fire",
|
58
|
+
1: "smoke",
|
59
59
|
}
|
60
60
|
)
|
61
61
|
|
@@ -92,7 +92,7 @@ class FireSmokeUseCase(BaseProcessor):
|
|
92
92
|
|
93
93
|
self.smoothing_tracker = None # Required for bbox smoothing
|
94
94
|
self._fire_smoke_recent_history = []
|
95
|
-
self.target_categories=['
|
95
|
+
self.target_categories=['fire']
|
96
96
|
|
97
97
|
self._ascending_alert_list: List[int] = []
|
98
98
|
self.current_incident_end_timestamp: str = "N/A"
|
@@ -139,7 +139,7 @@ class FireSmokeUseCase(BaseProcessor):
|
|
139
139
|
self.logger.debug("Applied category mapping")
|
140
140
|
|
141
141
|
if self.target_categories:
|
142
|
-
processed_data = [d for d in processed_data if d.get('category') in self.target_categories]
|
142
|
+
processed_data = [d for d in processed_data if d.get('category').lower() in self.target_categories]
|
143
143
|
self.logger.debug(f"Applied category filtering")
|
144
144
|
|
145
145
|
# Step 3.5: BBox smoothing for fire/smoke
|
@@ -187,6 +187,8 @@ class FireSmokeUseCase(BaseProcessor):
|
|
187
187
|
frame_number = start_frame
|
188
188
|
|
189
189
|
# Step 7: alerts
|
190
|
+
print("-----------ALERT_PROCESSING_IPP-----------")
|
191
|
+
print(fire_smoke_summary)
|
190
192
|
alerts = self._check_alerts(fire_smoke_summary, frame_number, config, stream_info)
|
191
193
|
|
192
194
|
|
@@ -597,7 +599,7 @@ class FireSmokeUseCase(BaseProcessor):
|
|
597
599
|
]
|
598
600
|
counts = {}
|
599
601
|
for det in detections:
|
600
|
-
cat = det.get('category', 'unknown')
|
602
|
+
cat = det.get('category', 'unknown').lower()
|
601
603
|
counts[cat] = counts.get(cat, 0) + 1
|
602
604
|
|
603
605
|
|
@@ -725,7 +727,7 @@ class FireSmokeUseCase(BaseProcessor):
|
|
725
727
|
"fire_smoke_categories": {
|
726
728
|
"type": "array",
|
727
729
|
"items": {"type": "string"},
|
728
|
-
"default": ["
|
730
|
+
"default": ["fire", "smoke"],
|
729
731
|
"description": "Category names that represent fire and smoke",
|
730
732
|
},
|
731
733
|
"index_to_category": {
|
@@ -753,8 +755,8 @@ class FireSmokeUseCase(BaseProcessor):
|
|
753
755
|
defaults = {
|
754
756
|
"category": self.category,
|
755
757
|
"usecase": self.name,
|
756
|
-
"confidence_threshold": 0.
|
757
|
-
"fire_smoke_categories": ["
|
758
|
+
"confidence_threshold": 0.3,
|
759
|
+
"fire_smoke_categories": ["fire", "smoke"],
|
758
760
|
}
|
759
761
|
defaults.update(overrides)
|
760
762
|
return FireSmokeConfig(**defaults)
|
@@ -175,7 +175,7 @@ matrice/deploy/utils/post_processing/usecases/emergency_vehicle_detection.py,sha
|
|
175
175
|
matrice/deploy/utils/post_processing/usecases/face_emotion.py,sha256=eRfqBdryB0uNoOlz_y-JMuZL1BhPWrI-odqgx_9LT7s,39132
|
176
176
|
matrice/deploy/utils/post_processing/usecases/fashion_detection.py,sha256=f9gpzMDhIW-gyn46k9jgf8nY7YeoqAnTxGOzksabFbE,40457
|
177
177
|
matrice/deploy/utils/post_processing/usecases/field_mapping.py,sha256=JDwYX8pd2W-waDvBh98Y_o_uchJu7wEYbFxOliA4Iq4,39822
|
178
|
-
matrice/deploy/utils/post_processing/usecases/fire_detection.py,sha256=
|
178
|
+
matrice/deploy/utils/post_processing/usecases/fire_detection.py,sha256=Tj4Ih19Res1-b5eA_nwjvHSDMrhIkdI3mzUlhfODhR8,41877
|
179
179
|
matrice/deploy/utils/post_processing/usecases/flare_analysis.py,sha256=-egmS3Hs_iGOLeCMfapbkfQ04EWtZx97QRuUcDa-jMU,45340
|
180
180
|
matrice/deploy/utils/post_processing/usecases/flower_segmentation.py,sha256=4I7qMx9Ztxg_hy9KTVX-3qBhAN-QwDt_Yigf9fFjLus,52017
|
181
181
|
matrice/deploy/utils/post_processing/usecases/gender_detection.py,sha256=DEnCTRew6B7DtPcBQVCTtpd_IQMvMusBcu6nadUg2oM,40107
|
@@ -227,8 +227,8 @@ matrice/deployment/camera_manager.py,sha256=ReBZqm1CNXRImKcbcZ4uWAT3TUWkof1D28oB
|
|
227
227
|
matrice/deployment/deployment.py,sha256=PLIUD-PxTaC2Zxb3Y12wUddsryV-OJetjCjLoSUh7S4,48103
|
228
228
|
matrice/deployment/inference_pipeline.py,sha256=bXLgd29ViA7o0c7YWLFJl1otBUQfTPb61jS6VawQB0Y,37918
|
229
229
|
matrice/deployment/streaming_gateway_manager.py,sha256=w5swGsuFVfZIdOm2ZuBHRHlRdYYJMLopLsf2gb91lQ8,20946
|
230
|
-
matrice-1.0.
|
231
|
-
matrice-1.0.
|
232
|
-
matrice-1.0.
|
233
|
-
matrice-1.0.
|
234
|
-
matrice-1.0.
|
230
|
+
matrice-1.0.99162.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
|
231
|
+
matrice-1.0.99162.dist-info/METADATA,sha256=7pUyVwAcw_onkhGFXYkqjFhVnNrDhIWFRlLsXV-sZok,14624
|
232
|
+
matrice-1.0.99162.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
233
|
+
matrice-1.0.99162.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
|
234
|
+
matrice-1.0.99162.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|