matrice 1.0.99394__py3-none-any.whl → 1.0.99396__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.
@@ -182,15 +182,16 @@ class VehicleMonitoringUseCase(BaseProcessor):
182
182
  counting_summary = self._count_categories(processed_data, config)
183
183
  total_counts = self.get_total_counts()
184
184
  counting_summary['total_counts'] = total_counts
185
+ counting_summary['categories'] = {}
185
186
  for detection in processed_data:
186
187
  category = detection.get("category", "unknown")
187
188
  counting_summary["categories"][category] = counting_summary["categories"].get(category, 0) + 1
188
189
 
189
190
  zone_analysis = {}
190
- if config.zone_config and config.zone_config.zones:
191
+ if config.zone_config and config.zone_config['zones']:
191
192
  # Convert single frame to format expected by count_objects_in_zones
192
193
  frame_data = processed_data #[frame_detections]
193
- zone_analysis = count_objects_in_zones(frame_data, config.zone_config.zones)
194
+ zone_analysis = count_objects_in_zones(frame_data, config.zone_config['zones'])
194
195
 
195
196
  # Update zone tracking with current frame data
196
197
  if zone_analysis and config.enable_tracking:
@@ -247,11 +248,11 @@ class VehicleMonitoringUseCase(BaseProcessor):
247
248
  Returns:
248
249
  Enhanced zone analysis with tracking information
249
250
  """
250
- if not zone_analysis or not config.zone_config or not config.zone_config.zones:
251
+ if not zone_analysis or not config.zone_config or not config.zone_config['zones']:
251
252
  return {}
252
253
 
253
254
  enhanced_zone_analysis = {}
254
- zones = config.zone_config.zones
255
+ zones = config.zone_config['zones']
255
256
 
256
257
  # Get current frame track IDs in each zone
257
258
  current_frame_zone_tracks = {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: matrice
3
- Version: 1.0.99394
3
+ Version: 1.0.99396
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
@@ -236,7 +236,7 @@ matrice/deploy/utils/post_processing/usecases/template_usecase.py,sha256=6NC-bTn
236
236
  matrice/deploy/utils/post_processing/usecases/theft_detection.py,sha256=Rs_zKn2z9YM10fGzTHR44Q3m8TIO1s5UMdiPWA03rbA,28671
237
237
  matrice/deploy/utils/post_processing/usecases/traffic_sign_monitoring.py,sha256=nDlEzHgMlUjy_VtJ7usnEzMcdSs-jouqaoJpJ8DYUMw,34351
238
238
  matrice/deploy/utils/post_processing/usecases/underwater_pollution_detection.py,sha256=jqP1ZKfDZe2-56Lyvgb2DxnbqRfvxm6pPL0Ck3esfBk,40356
239
- matrice/deploy/utils/post_processing/usecases/vehicle_monitoring.py,sha256=-TtvPEHShXlslhxpjSEGFEdeeP0zY-OYu635969K51I,45525
239
+ matrice/deploy/utils/post_processing/usecases/vehicle_monitoring.py,sha256=H8OkwowGrEbPuspl6Dg5a0lta7pxhVm8mxdFuoMEcF8,45581
240
240
  matrice/deploy/utils/post_processing/usecases/warehouse_object_segmentation.py,sha256=5uZXTJL_A3tUEN08T-_ZQpUoJ9gqbuuMc4z2mT4sMnQ,43753
241
241
  matrice/deploy/utils/post_processing/usecases/waterbody_segmentation.py,sha256=JsCxDEMB8s4WDcezfJDr2zrjM-TCjB9hxOztzSvWmpY,45268
242
242
  matrice/deploy/utils/post_processing/usecases/weapon_detection.py,sha256=gea-rjEHmP0hUjpcrcQIHOnhMMHQNqDI90cbpXHnlpI,31071
@@ -261,8 +261,8 @@ matrice/deployment/camera_manager.py,sha256=e1Lc81RJP5wUWRdTgHO6tMWF9BkBdHOSVyx3
261
261
  matrice/deployment/deployment.py,sha256=HFt151eWq6iqIAMsQvurpV2WNxW6Cx_gIUVfnVy5SWE,48093
262
262
  matrice/deployment/inference_pipeline.py,sha256=6b4Mm3-qt-Zy0BeiJfFQdImOn3FzdNCY-7ET7Rp8PMk,37911
263
263
  matrice/deployment/streaming_gateway_manager.py,sha256=ifYGl3g25wyU39HwhPQyI2OgF3M6oIqKMWt8RXtMxY8,21401
264
- matrice-1.0.99394.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
265
- matrice-1.0.99394.dist-info/METADATA,sha256=3bISm-l43QIoOwL2kjo_BTbUsV2TC-dCMaMPPNgRvdQ,14624
266
- matrice-1.0.99394.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
267
- matrice-1.0.99394.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
268
- matrice-1.0.99394.dist-info/RECORD,,
264
+ matrice-1.0.99396.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
265
+ matrice-1.0.99396.dist-info/METADATA,sha256=R0cJZVojEaN_AjvGiqIudZcVz_vmPNNG_xDhn9Pjh5k,14624
266
+ matrice-1.0.99396.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
267
+ matrice-1.0.99396.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
268
+ matrice-1.0.99396.dist-info/RECORD,,