matrice-analytics 0.1.97__py3-none-any.whl → 0.1.106__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_analytics/post_processing/advanced_tracker/config.py +8 -4
- matrice_analytics/post_processing/advanced_tracker/track_class_aggregator.py +128 -0
- matrice_analytics/post_processing/advanced_tracker/tracker.py +22 -1
- matrice_analytics/post_processing/config.py +4 -4
- matrice_analytics/post_processing/face_reg/face_recognition.py +706 -73
- matrice_analytics/post_processing/face_reg/people_activity_logging.py +25 -14
- matrice_analytics/post_processing/usecases/footfall.py +109 -2
- matrice_analytics/post_processing/usecases/license_plate_monitoring.py +55 -37
- matrice_analytics/post_processing/usecases/vehicle_monitoring_drone_view.py +219 -3
- matrice_analytics/post_processing/usecases/vehicle_monitoring_parking_lot.py +18 -1
- matrice_analytics/post_processing/utils/__init__.py +5 -0
- matrice_analytics/post_processing/utils/agnostic_nms.py +759 -0
- matrice_analytics/post_processing/utils/alert_instance_utils.py +37 -2
- {matrice_analytics-0.1.97.dist-info → matrice_analytics-0.1.106.dist-info}/METADATA +1 -1
- {matrice_analytics-0.1.97.dist-info → matrice_analytics-0.1.106.dist-info}/RECORD +18 -16
- {matrice_analytics-0.1.97.dist-info → matrice_analytics-0.1.106.dist-info}/WHEEL +0 -0
- {matrice_analytics-0.1.97.dist-info → matrice_analytics-0.1.106.dist-info}/licenses/LICENSE.txt +0 -0
- {matrice_analytics-0.1.97.dist-info → matrice_analytics-0.1.106.dist-info}/top_level.txt +0 -0
|
@@ -30,6 +30,10 @@ class VehicleMonitoringParkingLotConfig(BaseConfig):
|
|
|
30
30
|
smoothing_confidence_range_factor: float = 0.5
|
|
31
31
|
confidence_threshold: float = 0.6
|
|
32
32
|
|
|
33
|
+
# Class Aggregation: Configuration parameters
|
|
34
|
+
enable_class_aggregation: bool = True
|
|
35
|
+
class_aggregation_window_size: int = 30 # 30 frames ≈ 1 second at 30 FPS
|
|
36
|
+
|
|
33
37
|
#JBK_720_GATE POLYGON = [[86, 328], [844, 317], [1277, 520], [1273, 707], [125, 713]]
|
|
34
38
|
zone_config: Optional[Dict[str, List[List[float]]]] = None #field(
|
|
35
39
|
# default_factory=lambda: {
|
|
@@ -157,9 +161,22 @@ class VehicleMonitoringParkingLotUseCase(BaseProcessor):
|
|
|
157
161
|
from ..advanced_tracker import AdvancedTracker
|
|
158
162
|
from ..advanced_tracker.config import TrackerConfig
|
|
159
163
|
if self.tracker is None:
|
|
160
|
-
tracker_config = TrackerConfig(
|
|
164
|
+
tracker_config = TrackerConfig(
|
|
165
|
+
# CLASS AGGREGATION: Map from use case config
|
|
166
|
+
enable_class_aggregation=config.enable_class_aggregation,
|
|
167
|
+
class_aggregation_window_size=config.class_aggregation_window_size
|
|
168
|
+
)
|
|
161
169
|
self.tracker = AdvancedTracker(tracker_config)
|
|
162
170
|
self.logger.info("Initialized AdvancedTracker for Vehicle Monitoring Parking Lot use case")
|
|
171
|
+
|
|
172
|
+
if config.enable_class_aggregation:
|
|
173
|
+
self.logger.info(
|
|
174
|
+
f"AdvancedTracker initialized with class aggregation "
|
|
175
|
+
f"(window_size={config.class_aggregation_window_size})"
|
|
176
|
+
)
|
|
177
|
+
else:
|
|
178
|
+
self.logger.info("AdvancedTracker initialized without class aggregation")
|
|
179
|
+
|
|
163
180
|
processed_data = self.tracker.update(processed_data)
|
|
164
181
|
except Exception as e:
|
|
165
182
|
self.logger.warning(f"AdvancedTracker failed: {e}")
|
|
@@ -58,6 +58,10 @@ from .smoothing_utils import (
|
|
|
58
58
|
create_default_smoothing_config
|
|
59
59
|
)
|
|
60
60
|
|
|
61
|
+
from .agnostic_nms import (
|
|
62
|
+
AgnosticNMS
|
|
63
|
+
)
|
|
64
|
+
|
|
61
65
|
# from .color_utils import (
|
|
62
66
|
# extract_major_colors
|
|
63
67
|
# )
|
|
@@ -107,6 +111,7 @@ __all__ = [
|
|
|
107
111
|
'remove_duplicate_detections',
|
|
108
112
|
'apply_category_mapping',
|
|
109
113
|
'filter_by_area',
|
|
114
|
+
'AgnosticNMS',
|
|
110
115
|
|
|
111
116
|
# Counting utilities
|
|
112
117
|
'count_objects_by_category',
|