matrice 1.0.99280__py3-none-any.whl → 1.0.99282__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.
@@ -401,6 +401,17 @@ class _RealTimeJsonEventPicker:
401
401
  elif self._hit_counter<0:
402
402
  self._hit_counter=0
403
403
 
404
+ if len(self._sequence) == 1:
405
+ if incidents.get("human_text")=="Event Over":
406
+ event = {
407
+ "type": "event_end",
408
+ "frame_id": frame_id,
409
+ "video_timestamp_secs": int(frame_id)/30
410
+ }
411
+ self.reset()
412
+ self.send_api_call(frame_json)
413
+ return event
414
+
404
415
  else:
405
416
  # No detections in this frame
406
417
  if len(self._sequence) == 1: # Waiting for final idle period
@@ -115,9 +115,14 @@ class CropWeedDetectionUseCase(BaseProcessor):
115
115
  context=context)
116
116
  if context is None:
117
117
  context = ProcessingContext()
118
+
118
119
 
119
120
  # Detect input format and store in context
120
121
  input_format = match_results_structure(data)
122
+
123
+ # DEBUG
124
+ print(f"Detected input format: {input_format}")
125
+
121
126
  context.input_format = input_format
122
127
  context.confidence_threshold = config.confidence_threshold
123
128
 
@@ -151,6 +156,8 @@ class CropWeedDetectionUseCase(BaseProcessor):
151
156
  self.smoothing_tracker = BBoxSmoothingTracker(smoothing_config)
152
157
  processed_data = bbox_smoothing(processed_data, self.smoothing_tracker.config, self.smoothing_tracker)
153
158
 
159
+ # DEBUG:
160
+ print(f"Processed data after filtering and smoothing: {processed_data}")
154
161
 
155
162
  # Advanced tracking (BYTETracker-like)
156
163
  try:
@@ -234,6 +241,9 @@ class CropWeedDetectionUseCase(BaseProcessor):
234
241
 
235
242
  # Build result object following the new pattern
236
243
 
244
+ # DEBUG:
245
+ print(f"Final aggregated summary: {agg_summary}")
246
+
237
247
  result = self.create_result(
238
248
  data={"agg_summary": agg_summary},
239
249
  usecase=self.name,
@@ -449,6 +459,9 @@ class CropWeedDetectionUseCase(BaseProcessor):
449
459
  # Prepare detections without confidence scores (as per eg.json)
450
460
  detections = []
451
461
 
462
+ # DEBUG
463
+ print(f"Model detections: {counting_summary.get('detections', [])}")
464
+
452
465
  for detection in counting_summary.get("detections", []):
453
466
  detection_data = {
454
467
  "category": detection.get("category"),
@@ -476,6 +489,9 @@ class CropWeedDetectionUseCase(BaseProcessor):
476
489
  }
477
490
  })
478
491
 
492
+ # DEBUG
493
+ print(f"Detections for tracking stats: {detections}")
494
+
479
495
  # Generate human_text in expected format
480
496
  human_text_lines = [f"Tracking Statistics:"]
481
497
  human_text_lines.append(f"CURRENT FRAME @ {current_timestamp}")
@@ -510,6 +526,9 @@ class CropWeedDetectionUseCase(BaseProcessor):
510
526
  reset_settings=reset_settings, start_time=high_precision_start_timestamp ,
511
527
  reset_time=high_precision_reset_timestamp)
512
528
 
529
+ # DEBUG
530
+ print(f"Generated tracking stat: {tracking_stat}")
531
+
513
532
  tracking_stats.append(tracking_stat)
514
533
  return tracking_stats
515
534
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: matrice
3
- Version: 1.0.99280
3
+ Version: 1.0.99282
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=vPjp1JDs6hpdbOpMP7ymx7j-PDB85b8W2yrntx79riI,42194
112
+ matrice/deploy/client/streaming_gateway/streaming_gateway_utils.py,sha256=cFoKEf6iusht1GjuCV0ChESDKGwqVT99wAss-u85WJc,42623
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
@@ -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=YIbUYkphDtCZl6u1nFpPc8rdzgoufBAtaeHYzraZw4Q,40051
176
+ matrice/deploy/utils/post_processing/usecases/crop_weed_detection.py,sha256=gJnglwmN_nDO5v4pnxZhIIbseSN8n2bInAN7Uwfjo_M,40565
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
@@ -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.99280.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
248
- matrice-1.0.99280.dist-info/METADATA,sha256=I25kb62DRgh716aJCQo6-_T-9BYCP6mf-WGqNzRi8TA,14624
249
- matrice-1.0.99280.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
250
- matrice-1.0.99280.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
251
- matrice-1.0.99280.dist-info/RECORD,,
247
+ matrice-1.0.99282.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
248
+ matrice-1.0.99282.dist-info/METADATA,sha256=g5oupDWpnhtqf7JMVoCfH6Cw2uLJ2zSpEru7YvPR6yQ,14624
249
+ matrice-1.0.99282.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
250
+ matrice-1.0.99282.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
251
+ matrice-1.0.99282.dist-info/RECORD,,