matrice 1.0.99275__py3-none-any.whl → 1.0.99277__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.
@@ -319,7 +319,7 @@ class OutputConfig:
319
319
  class _RealTimeJsonEventPicker:
320
320
  """Stateful helper that replicates the original logic but works one frame at a time."""
321
321
 
322
- def __init__(self, consecutive_threshold: int = 7, end_threshold: int = 130):
322
+ def __init__(self, consecutive_threshold: int = 7, end_threshold: int = 129):
323
323
  # Required sequence of severities
324
324
  self._base_sequence: List[str] = ["low", "medium", "significant", "critical", "low"]
325
325
  self._sequence: deque[str] = deque(self._base_sequence)
@@ -405,7 +405,7 @@ class _RealTimeJsonEventPicker:
405
405
  # No detections in this frame
406
406
  if len(self._sequence) == 1: # Waiting for final idle period
407
407
  self._hit_counter += 1
408
- if self._hit_counter > self._end_threshold:
408
+ if self._hit_counter >= self._end_threshold:
409
409
  event = {
410
410
  "type": "event_end",
411
411
  "frame_id": frame_id,
@@ -27,7 +27,7 @@ class AbandonedObjectConfig(BaseConfig):
27
27
  smoothing_window_size: int = 20
28
28
  smoothing_cooldown_frames: int = 5
29
29
  smoothing_confidence_range_factor: float = 0.5
30
- confidence_threshold: float = 0.6
30
+ confidence_threshold: float = 0.4
31
31
  usecase_categories: List[str] = field(
32
32
  default_factory=lambda: ['backpack', 'handbag', 'suitcase']
33
33
  )
@@ -418,6 +418,7 @@ class FireSmokeUseCase(BaseProcessor):
418
418
  if current_dominant_incident != potential_dominant_incident:
419
419
 
420
420
  self.current_incident_end_timestamp = current_timestamp
421
+ self.current_incident_end_timestamp='Incident active'
421
422
  elif self.current_incident_end_timestamp!='Incident still active' and self.current_incident_end_timestamp!='N/A':
422
423
  self.current_incident_end_timestamp = 'N/A'
423
424
 
@@ -445,7 +446,6 @@ class FireSmokeUseCase(BaseProcessor):
445
446
  elif intensity_pct >= 13:
446
447
  level = "significant"
447
448
  self._ascending_alert_list.append(level)
448
- self.current_incident_end_timestamp='Incident still active'
449
449
  elif intensity_pct >= 3:
450
450
  level = "medium"
451
451
  self._ascending_alert_list.append(level)
@@ -460,7 +460,6 @@ class FireSmokeUseCase(BaseProcessor):
460
460
  elif intensity_pct > 12:
461
461
  level = "significant"
462
462
  intensity = 9.0
463
- self.current_incident_end_timestamp='Incident still active'
464
463
  self._ascending_alert_list.append(level)
465
464
  elif intensity_pct > 2:
466
465
  level = "medium"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: matrice
3
- Version: 1.0.99275
3
+ Version: 1.0.99277
4
4
  Summary: SDK for connecting to matrice.ai services
5
5
  Home-page: https://github.com/matrice-ai/python-sdk
6
6
  Author: Matrice.ai
@@ -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=_fJl0ry2O8UkEwHpufNdJ68EAkWAAN7moGbBLJtPQeE,42144
112
+ matrice/deploy/client/streaming_gateway/streaming_gateway_utils.py,sha256=LC39UFS-ggUFwV-NJFy6sc0cR9YDb32MpeuPdlyM3-Q,42145
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
@@ -157,7 +157,7 @@ matrice/deploy/utils/post_processing/test_cases/test_utilities.py,sha256=lmT5bp5
157
157
  matrice/deploy/utils/post_processing/test_cases/test_utils.py,sha256=bfmOT1rr9asv3jpr-p_UrjnnSZ1qEWM2LEqNKkyvJZ8,29370
158
158
  matrice/deploy/utils/post_processing/usecases/Histopathological_Cancer_Detection_img.py,sha256=bHDXxxG3QgWMFZbDuBaJWpkIvxTXsFMTqCPBCFm3SDs,30247
159
159
  matrice/deploy/utils/post_processing/usecases/__init__.py,sha256=aTVBEy8PnIEQdxFKpyB6_bYW5WWed6S2JBkYK57VT2s,9571
160
- matrice/deploy/utils/post_processing/usecases/abandoned_object_detection.py,sha256=hn8N4lIj3o4cpC7Y34CWvCopgA-ZLm3pMWMys7cMq-o,31750
160
+ matrice/deploy/utils/post_processing/usecases/abandoned_object_detection.py,sha256=W6thVUxNzZc2vDaXG69DNvENP8WVPQh-vE52YXtLEHU,31750
161
161
  matrice/deploy/utils/post_processing/usecases/advanced_customer_service.py,sha256=ELt5euxr6P4X2s8-YGngmj27QscOHefjOsx3774sNFk,75914
162
162
  matrice/deploy/utils/post_processing/usecases/age_detection.py,sha256=yn1LXOgbnOWSMDnsCds6-uN6W-I1Hy4_-AMrjbT5PtY,41318
163
163
  matrice/deploy/utils/post_processing/usecases/anti_spoofing_detection.py,sha256=XdtDdXGzZMLQdWcoOoiE5t4LPYHhgOtJ7tZCNlq1A2E,31329
@@ -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=8GMabLpVFWCSHULdjO8V_fCPqz9hf9pyAu2n-vuLg7A,48936
186
+ matrice/deploy/utils/post_processing/usecases/fire_detection.py,sha256=xYeVhIKCNJ2g4KvTBjQmsIivTO2zroEkI8u-Ek_51Kc,48834
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.99275.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
248
- matrice-1.0.99275.dist-info/METADATA,sha256=F8K1g936l74lHwzQ9iLCeOwcTHnSzcFxchP3cbU6qbI,14624
249
- matrice-1.0.99275.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
250
- matrice-1.0.99275.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
251
- matrice-1.0.99275.dist-info/RECORD,,
247
+ matrice-1.0.99277.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
248
+ matrice-1.0.99277.dist-info/METADATA,sha256=9qO5gm1K506PbOnSWf-z21wUszJxc5aEOcAIrk48o5o,14624
249
+ matrice-1.0.99277.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
250
+ matrice-1.0.99277.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
251
+ matrice-1.0.99277.dist-info/RECORD,,