matrice 1.0.99136__py3-none-any.whl → 1.0.99138__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.
@@ -117,16 +117,18 @@ class ConcreteCrackUseCase(BaseProcessor):
117
117
  processed_data = data
118
118
 
119
119
  self.logger.debug(f"Did not apply confidence filtering with threshold since nothing was provided")
120
+ print("---------------------processed_1-----------------------------------")
120
121
  print(processed_data)
121
122
  # Step 2: Apply category mapping if provided
122
123
  if config.index_to_category:
123
124
  processed_data = apply_category_mapping(processed_data, config.index_to_category)
124
125
  self.logger.debug("Applied category mapping")
126
+ print("---------------------processed_2-----------------------------------")
125
127
  print(processed_data)
126
128
  if config.target_categories:
127
129
  processed_data = [d for d in processed_data if d.get('category') in self.target_categories]
128
130
  self.logger.debug(f"Applied category filtering")
129
-
131
+ print("---------------------processed_3-----------------------------------")
130
132
  print(processed_data)
131
133
 
132
134
  # Apply bbox smoothing if enabled
@@ -141,6 +143,7 @@ class ConcreteCrackUseCase(BaseProcessor):
141
143
  enable_smoothing=True
142
144
  )
143
145
  self.smoothing_tracker = BBoxSmoothingTracker(smoothing_config)
146
+ print("---------------------processed_4-----------------------------------")
144
147
  processed_data = bbox_smoothing(processed_data, self.smoothing_tracker.config, self.smoothing_tracker)
145
148
 
146
149
  # Advanced tracking (BYTETracker-like)
@@ -184,7 +187,8 @@ class ConcreteCrackUseCase(BaseProcessor):
184
187
  # Add total unique counts after tracking using only local state
185
188
  total_counts = self.get_total_counts()
186
189
  counting_summary['total_counts'] = total_counts
187
-
190
+ print("---------------------counting_summ-----------------------------------")
191
+ print(counting_summary)
188
192
  alerts = self._check_alerts(counting_summary, frame_number, config)
189
193
  predictions = self._extract_predictions(processed_data)
190
194
 
@@ -415,6 +419,7 @@ class ConcreteCrackUseCase(BaseProcessor):
415
419
  "category": cat,
416
420
  "count": count
417
421
  })
422
+ print("-----------------------------total_counts---------------------------------------")
418
423
  print(total_counts)
419
424
  # Build current_counts array in expected format
420
425
  current_counts = []
@@ -424,6 +429,7 @@ class ConcreteCrackUseCase(BaseProcessor):
424
429
  "category": cat,
425
430
  "count": count
426
431
  })
432
+ print("----------------------------------current_counts---------------------------------------")
427
433
  print(current_counts)
428
434
  # Prepare detections without confidence scores (as per eg.json)
429
435
  detections = []
@@ -476,6 +482,7 @@ class ConcreteCrackUseCase(BaseProcessor):
476
482
  human_text_lines.append("Alerts: None")
477
483
 
478
484
  human_text = "\n".join(human_text_lines)
485
+ print("-------------------------------human_text-----------------------------------------------------")
479
486
  print(human_text)
480
487
  reset_settings = [
481
488
  {
@@ -677,7 +684,9 @@ class ConcreteCrackUseCase(BaseProcessor):
677
684
  cat = det.get('category', 'unknown')
678
685
  counts[cat] = counts.get(cat, 0) + 1
679
686
  # Each detection dict will now include 'track_id' (and possibly 'frame_id')
687
+ print("---------------------------------COUNTS-------------------------------------")
680
688
  print(counts)
689
+ print("---------------------------------Detections-------------------------------------")
681
690
  print(detections)
682
691
  return {
683
692
  "total_count": sum(counts.values()),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: matrice
3
- Version: 1.0.99136
3
+ Version: 1.0.99138
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
@@ -166,7 +166,7 @@ matrice/deploy/utils/post_processing/usecases/chicken_pose_detection.py,sha256=-
166
166
  matrice/deploy/utils/post_processing/usecases/child_monitoring.py,sha256=z3oymoqq4hDGwA8MkdEONZW_Vx5CAZmvzZaNLsqmCfw,39380
167
167
  matrice/deploy/utils/post_processing/usecases/color_detection.py,sha256=Z8-akjy8a7f8YyiOzXu_Zi1Km30v-TRrymDqQOPpJ_8,43277
168
168
  matrice/deploy/utils/post_processing/usecases/color_map_utils.py,sha256=SP-AEVcjLmL8rxblu-ixqUJC2fqlcr7ab4hWo4Fcr_k,2677
169
- matrice/deploy/utils/post_processing/usecases/concrete_crack_detection.py,sha256=Fe8aE6q8q7EE7-FEoBOu_N430fl7-Q388vG_I1DWMmY,39516
169
+ matrice/deploy/utils/post_processing/usecases/concrete_crack_detection.py,sha256=GU0i4Zqb2LH1gvTCAeVdsA3-v1ox9tv3A0B4TmsVUQA,40468
170
170
  matrice/deploy/utils/post_processing/usecases/crop_weed_detection.py,sha256=i7BWhC-D7liOg9fzFHFg_upd1fdvXlVHYzDRyHL-AdM,40322
171
171
  matrice/deploy/utils/post_processing/usecases/customer_service.py,sha256=UWS83qxguyAyhh8a0JF5QH9DtKxO8I-gI2BPOjLPxBw,44642
172
172
  matrice/deploy/utils/post_processing/usecases/defect_detection_products.py,sha256=flvTWv6vxa3q4zXD8_e8TW0pqNE5z3LIuvU9ceVKuXg,34481
@@ -225,8 +225,8 @@ matrice/deployment/camera_manager.py,sha256=ReBZqm1CNXRImKcbcZ4uWAT3TUWkof1D28oB
225
225
  matrice/deployment/deployment.py,sha256=PLIUD-PxTaC2Zxb3Y12wUddsryV-OJetjCjLoSUh7S4,48103
226
226
  matrice/deployment/inference_pipeline.py,sha256=bXLgd29ViA7o0c7YWLFJl1otBUQfTPb61jS6VawQB0Y,37918
227
227
  matrice/deployment/streaming_gateway_manager.py,sha256=w5swGsuFVfZIdOm2ZuBHRHlRdYYJMLopLsf2gb91lQ8,20946
228
- matrice-1.0.99136.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
229
- matrice-1.0.99136.dist-info/METADATA,sha256=a5upAi7nb17uQZwNLpwNwwXLYHk4D-6ok24O7dZ8jF0,14624
230
- matrice-1.0.99136.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
231
- matrice-1.0.99136.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
232
- matrice-1.0.99136.dist-info/RECORD,,
228
+ matrice-1.0.99138.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
229
+ matrice-1.0.99138.dist-info/METADATA,sha256=64dNxoVdQEYqyukYYxqJ6yYHuY-svt7t2VWEg6S_5qA,14624
230
+ matrice-1.0.99138.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
231
+ matrice-1.0.99138.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
232
+ matrice-1.0.99138.dist-info/RECORD,,