matrice 1.0.99290__py3-none-any.whl → 1.0.99292__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/crop_weed_detection.py +3 -3
- matrice/deploy/utils/post_processing/usecases/fire_detection.py +9 -4
- {matrice-1.0.99290.dist-info → matrice-1.0.99292.dist-info}/METADATA +1 -1
- {matrice-1.0.99290.dist-info → matrice-1.0.99292.dist-info}/RECORD +7 -7
- {matrice-1.0.99290.dist-info → matrice-1.0.99292.dist-info}/WHEEL +0 -0
- {matrice-1.0.99290.dist-info → matrice-1.0.99292.dist-info}/licenses/LICENSE.txt +0 -0
- {matrice-1.0.99290.dist-info → matrice-1.0.99292.dist-info}/top_level.txt +0 -0
@@ -31,14 +31,14 @@ class CropWeedDetectionConfig(BaseConfig):
|
|
31
31
|
smoothing_confidence_range_factor: float = 0.5
|
32
32
|
|
33
33
|
# confidence thresholds
|
34
|
-
confidence_threshold: float = 0.
|
34
|
+
confidence_threshold: float = 0.5
|
35
35
|
|
36
36
|
usecase_categories: List[str] = field(
|
37
37
|
default_factory=lambda: ['plants', 'BroWeed', 'Maize', 'NarWeed']
|
38
38
|
)
|
39
39
|
|
40
40
|
target_categories: List[str] = field(
|
41
|
-
default_factory=lambda: ['
|
41
|
+
default_factory=lambda: ['BroWeed', 'Maize', 'NarWeed']
|
42
42
|
)
|
43
43
|
|
44
44
|
alert_config: Optional[AlertConfig] = None
|
@@ -67,7 +67,7 @@ class CropWeedDetectionUseCase(BaseProcessor):
|
|
67
67
|
self.category = "agriculture"
|
68
68
|
self.CASE_TYPE: Optional[str] = 'crop_weed_detection'
|
69
69
|
self.CASE_VERSION: Optional[str] = '1.2'
|
70
|
-
self.target_categories = ['
|
70
|
+
self.target_categories = ['BroWeed', 'Maize', 'NarWeed']
|
71
71
|
self.smoothing_tracker = None
|
72
72
|
self.tracker = None
|
73
73
|
self._total_frame_counter = 0
|
@@ -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,17 @@ 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
|
650
652
|
if last_ending_id==5:
|
653
|
+
alert_serial = getattr(config.alert_config, 'alert_type', ['Default']) if hasattr(config.alert_config, 'alert_type') else ['Default']
|
654
|
+
alert_serial = alert_serial[0]
|
651
655
|
alerts=[{
|
652
656
|
"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(
|
657
|
+
"alert_id": "alert_"+'Event_Ended'+'_'+alert_serial+'_'+str(incident_id),
|
654
658
|
"incident_category": self.CASE_TYPE,
|
655
659
|
"threshold_level": 0,
|
656
660
|
"ascending": False,
|
@@ -659,7 +663,8 @@ class FireSmokeUseCase(BaseProcessor):
|
|
659
663
|
}
|
660
664
|
}]
|
661
665
|
tracking_stats.append(alerts)
|
662
|
-
tracking_stats
|
666
|
+
tracking_stats[0]['alerts']=alerts
|
667
|
+
tracking_stats.append(self.create_incident(incident_id='incident_'+self.CASE_TYPE+'_'+str(incident_id), incident_type=self.CASE_TYPE,
|
663
668
|
severity_level='info', human_text='Event Over', camera_info=camera_info, alerts=alerts, alert_settings=alert_settings,
|
664
669
|
start_time=start_timestamp, end_time='Incident still active',
|
665
670
|
level_settings= {"low": 3, "medium": 5, "significant":15, "critical": 30}))
|
@@ -173,7 +173,7 @@ matrice/deploy/utils/post_processing/usecases/child_monitoring.py,sha256=z3oymoq
|
|
173
173
|
matrice/deploy/utils/post_processing/usecases/color_detection.py,sha256=Z8-akjy8a7f8YyiOzXu_Zi1Km30v-TRrymDqQOPpJ_8,43277
|
174
174
|
matrice/deploy/utils/post_processing/usecases/color_map_utils.py,sha256=SP-AEVcjLmL8rxblu-ixqUJC2fqlcr7ab4hWo4Fcr_k,2677
|
175
175
|
matrice/deploy/utils/post_processing/usecases/concrete_crack_detection.py,sha256=pxhOH_hG4hq9yytNepbGMdk2W_lTG8D1_2RAagaPBkg,40252
|
176
|
-
matrice/deploy/utils/post_processing/usecases/crop_weed_detection.py,sha256
|
176
|
+
matrice/deploy/utils/post_processing/usecases/crop_weed_detection.py,sha256=Ao1k5fJDYU_f6yZ8VO-jW8-esECV0-zY5Q570c_fako,35674
|
177
177
|
matrice/deploy/utils/post_processing/usecases/customer_service.py,sha256=UWS83qxguyAyhh8a0JF5QH9DtKxO8I-gI2BPOjLPxBw,44642
|
178
178
|
matrice/deploy/utils/post_processing/usecases/defect_detection_products.py,sha256=blvo4wmak-wlvPSZOcmRsV1FoZSeGX_dUAX5A1WheBE,45949
|
179
179
|
matrice/deploy/utils/post_processing/usecases/distracted_driver_detection.py,sha256=rkyYHbmcYUAfKbmmKyKxHlk47vJ_fogHWKhQjrERsok,40316
|
@@ -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=5RVeBY6Q-FrHIUkmnH66L6hCAobHcE3D_sXRwUdtNxk,50582
|
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.99292.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
|
248
|
+
matrice-1.0.99292.dist-info/METADATA,sha256=_ZwbZhnZCCqICQ2Yi3RwzfhX4H4S6P6WNTPuOpAggdk,14624
|
249
|
+
matrice-1.0.99292.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
250
|
+
matrice-1.0.99292.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
|
251
|
+
matrice-1.0.99292.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|