matrice 1.0.99259__py3-none-any.whl → 1.0.99261__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.

Potentially problematic release.


This version of matrice might be problematic. Click here for more details.

@@ -199,15 +199,16 @@ class FireSmokeUseCase(BaseProcessor):
199
199
  frame_number = start_frame
200
200
 
201
201
  # Step 7: alerts
202
+ # Ensure we have an AlertConfig object. `dataclasses.field` is only
203
+ # meant for class-level default declarations – using it at runtime
204
+ # produces a `Field` object which later breaks JSON serialization.
202
205
  if config.alert_config is None:
203
- config.alert_config = field(
204
- default_factory=lambda: AlertConfig(
206
+ config.alert_config = AlertConfig(
205
207
  count_thresholds={"fire": 0},
206
208
  alert_type=["email"],
207
209
  alert_value=["FIRE_INFO@matrice.ai"],
208
210
  alert_incident_category=["FIRE-ALERT"]
209
211
  )
210
- )
211
212
  print("-----------------------------------------------")
212
213
  print(config.confidence_threshold)
213
214
  print(config.fire_smoke_categories)
@@ -238,9 +239,16 @@ class FireSmokeUseCase(BaseProcessor):
238
239
 
239
240
  # Finalize context and return result
240
241
  context.processing_time = time.time() - start_time
241
- # Extract frame-based dictionaries from the lists
242
+
242
243
  incidents = incidents_list[0] if incidents_list else {}
243
244
  tracking_stats = tracking_stats_list[0] if tracking_stats_list else {}
245
+ #EVENT ENDED SIGNAL
246
+
247
+ if len(tracking_stats_list)==3:
248
+ alerts = tracking_stats_list[1]
249
+ incidents = tracking_stats_list[2]
250
+ tracking_stats = tracking_stats_list[0]
251
+
244
252
  business_analytics = business_analytics_list[0] if business_analytics_list else {}
245
253
  summary = summary_list[0] if summary_list else {}
246
254
  agg_summary = {str(frame_number): {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: matrice
3
- Version: 1.0.99259
3
+ Version: 1.0.99261
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
@@ -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=JT53juDT4bjpyXxH3bSC_vYiAbdt1PWjrbtr2dTvtRE,47993
185
+ matrice/deploy/utils/post_processing/usecases/fire_detection.py,sha256=Xds7kFo7WFEFLHpxRtf3pHr6uSl5yNwzaNC5HNgd0vE,48356
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.99259.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
247
- matrice-1.0.99259.dist-info/METADATA,sha256=pa-EmGjvAfSOxIU1ks1fsx65d5xR1gh6e4eJUWL0zQM,14624
248
- matrice-1.0.99259.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
249
- matrice-1.0.99259.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
250
- matrice-1.0.99259.dist-info/RECORD,,
246
+ matrice-1.0.99261.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
247
+ matrice-1.0.99261.dist-info/METADATA,sha256=9IBu85a68otO8eER-uJWNobTcOW2272qY-ERdmaQ7pw,14624
248
+ matrice-1.0.99261.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
249
+ matrice-1.0.99261.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
250
+ matrice-1.0.99261.dist-info/RECORD,,