matrice 1.0.98851__py3-none-any.whl → 1.0.98853__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.
- matrice/deploy/utils/post_processing/usecases/vehicle_monitoring.py +11 -4
- {matrice-1.0.98851.dist-info → matrice-1.0.98853.dist-info}/METADATA +1 -1
- {matrice-1.0.98851.dist-info → matrice-1.0.98853.dist-info}/RECORD +6 -6
- {matrice-1.0.98851.dist-info → matrice-1.0.98853.dist-info}/WHEEL +0 -0
- {matrice-1.0.98851.dist-info → matrice-1.0.98853.dist-info}/licenses/LICENSE.txt +0 -0
- {matrice-1.0.98851.dist-info → matrice-1.0.98853.dist-info}/top_level.txt +0 -0
@@ -565,7 +565,9 @@ class VehicleMonitoringUseCase(BaseProcessor):
|
|
565
565
|
|
566
566
|
total_vehicles = counting_summary.get("total_count", 0)
|
567
567
|
total_vehicle_counts = counting_summary.get("total_vehicle_counts", {})
|
568
|
-
|
568
|
+
0cumulative_total = sum(total_vehicle_counts.values()) if total_vehicle_counts else 0
|
569
|
+
per_category_count = counting_summary.get("per_category_count", {})
|
570
|
+
|
569
571
|
|
570
572
|
track_ids_info = self._get_track_ids_info(counting_summary.get("detections", []))
|
571
573
|
|
@@ -577,7 +579,14 @@ class VehicleMonitoringUseCase(BaseProcessor):
|
|
577
579
|
# CURRENT FRAME section
|
578
580
|
human_text_lines.append(f"CURRENT FRAME @ {current_timestamp}:")
|
579
581
|
if total_vehicles > 0:
|
580
|
-
|
582
|
+
category_counts = [f"{count} {cat}" for cat, count in per_category_count.items()]
|
583
|
+
if len(category_counts) == 1:
|
584
|
+
vehicles_text = category_counts[0] + " detected"
|
585
|
+
elif len(category_counts) == 2:
|
586
|
+
vehicles_text = f"{category_counts[0]} and {category_counts[1]} detected"
|
587
|
+
else:
|
588
|
+
vehicles_text = f"{', '.join(category_counts[:-1])}, and {category_counts[-1]} detected"
|
589
|
+
human_text_lines.append(f"\t- {vehicles_text}")
|
581
590
|
else:
|
582
591
|
human_text_lines.append(f"\t- No vehicles detected")
|
583
592
|
|
@@ -586,8 +595,6 @@ class VehicleMonitoringUseCase(BaseProcessor):
|
|
586
595
|
# TOTAL SINCE section
|
587
596
|
human_text_lines.append(f"TOTAL SINCE {start_timestamp}:")
|
588
597
|
human_text_lines.append(f"\t- Total Vehicles Detected: {cumulative_total}")
|
589
|
-
for cat, count in total_vehicle_counts.items():
|
590
|
-
human_text_lines.append(f"\t\t- {cat.capitalize()}: {count}")
|
591
598
|
|
592
599
|
human_text = "\n".join(human_text_lines)
|
593
600
|
|
@@ -123,7 +123,7 @@ matrice/deploy/utils/post_processing/usecases/flare_analysis.py,sha256=_pPKa16ax
|
|
123
123
|
matrice/deploy/utils/post_processing/usecases/license_plate_detection.py,sha256=f38mdyAdW2Lopqy2XcT97HzI31_FcxTux-_tIdCm37g,26855
|
124
124
|
matrice/deploy/utils/post_processing/usecases/people_counting.py,sha256=QSvq2zwFotp0o_T15EqFePAkukIyACleBZCf4fy7dHM,77973
|
125
125
|
matrice/deploy/utils/post_processing/usecases/ppe_compliance.py,sha256=UhFFy7awb3vmBd4eOdFeO43um497J0Xt90Nl9v6reoQ,27599
|
126
|
-
matrice/deploy/utils/post_processing/usecases/vehicle_monitoring.py,sha256=
|
126
|
+
matrice/deploy/utils/post_processing/usecases/vehicle_monitoring.py,sha256=xxl_jVh_YDLGkD33w_G6YIxPRMciA7Hm5KxG5p7LQew,39663
|
127
127
|
matrice/deploy/utils/post_processing/utils/__init__.py,sha256=A49ksdXL7gRwBbIUwnU2ueFDGA67qVnEW_9lItOibtk,3626
|
128
128
|
matrice/deploy/utils/post_processing/utils/advanced_counting_utils.py,sha256=D6jlZNRCfPtfG8COv3AMCbCfZf4_DK9rFhwzVJEYjpg,19152
|
129
129
|
matrice/deploy/utils/post_processing/utils/advanced_helper_utils.py,sha256=W8mDqJTpg98YJgWYBod0rZUNbR4bmvYMeWAGASs14_s,11624
|
@@ -137,8 +137,8 @@ matrice/deploy/utils/post_processing/utils/format_utils.py,sha256=ce2VpQicTYKfxu
|
|
137
137
|
matrice/deploy/utils/post_processing/utils/geometry_utils.py,sha256=BWfdM6RsdJTTLR1GqkWfdwpjMEjTCJyuBxA4zVGKdfk,9623
|
138
138
|
matrice/deploy/utils/post_processing/utils/smoothing_utils.py,sha256=gQPykV1HGh-IMMz_3fumgtrhpyCRgXMS1hOEDcLRMO0,12542
|
139
139
|
matrice/deploy/utils/post_processing/utils/tracking_utils.py,sha256=rWxuotnJ3VLMHIBOud2KLcu4yZfDp7hVPWUtNAq_2xw,8288
|
140
|
-
matrice-1.0.
|
141
|
-
matrice-1.0.
|
142
|
-
matrice-1.0.
|
143
|
-
matrice-1.0.
|
144
|
-
matrice-1.0.
|
140
|
+
matrice-1.0.98853.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
|
141
|
+
matrice-1.0.98853.dist-info/METADATA,sha256=CPHGkZjAQXzFzZeRFAkklVMU_hnWWGk6yf6h-Jcd7KE,14624
|
142
|
+
matrice-1.0.98853.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
143
|
+
matrice-1.0.98853.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
|
144
|
+
matrice-1.0.98853.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|