matrice 1.0.99138__py3-none-any.whl → 1.0.99140__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/concrete_crack_detection.py +21 -10
- {matrice-1.0.99138.dist-info → matrice-1.0.99140.dist-info}/METADATA +1 -1
- {matrice-1.0.99138.dist-info → matrice-1.0.99140.dist-info}/RECORD +6 -6
- {matrice-1.0.99138.dist-info → matrice-1.0.99140.dist-info}/WHEEL +0 -0
- {matrice-1.0.99138.dist-info → matrice-1.0.99140.dist-info}/licenses/LICENSE.txt +0 -0
- {matrice-1.0.99138.dist-info → matrice-1.0.99140.dist-info}/top_level.txt +0 -0
@@ -145,21 +145,32 @@ class ConcreteCrackUseCase(BaseProcessor):
|
|
145
145
|
self.smoothing_tracker = BBoxSmoothingTracker(smoothing_config)
|
146
146
|
print("---------------------processed_4-----------------------------------")
|
147
147
|
processed_data = bbox_smoothing(processed_data, self.smoothing_tracker.config, self.smoothing_tracker)
|
148
|
-
|
148
|
+
print(processed_data)
|
149
149
|
# Advanced tracking (BYTETracker-like)
|
150
150
|
try:
|
151
|
-
from ..advanced_tracker import AdvancedTracker
|
152
|
-
from ..advanced_tracker.config import TrackerConfig
|
153
|
-
|
154
|
-
# Create tracker instance if it doesn't exist (preserves state across frames)
|
155
151
|
if self.tracker is None:
|
156
|
-
|
152
|
+
# Configure tracker thresholds based on the use-case confidence threshold so that
|
153
|
+
# low-confidence detections (e.g. < 0.7) can still be initialised as tracks when
|
154
|
+
# the user passes a lower `confidence_threshold` in the post-processing config.
|
155
|
+
if config.confidence_threshold is not None:
|
156
|
+
tracker_config = TrackerConfig(
|
157
|
+
track_high_thresh=float(config.confidence_threshold),
|
158
|
+
# Allow even lower detections to participate in secondary association
|
159
|
+
track_low_thresh=max(0.05, float(config.confidence_threshold) / 2),
|
160
|
+
new_track_thresh=float(config.confidence_threshold)
|
161
|
+
)
|
162
|
+
else:
|
163
|
+
tracker_config = TrackerConfig()
|
157
164
|
self.tracker = AdvancedTracker(tracker_config)
|
158
|
-
self.logger.info(
|
159
|
-
|
160
|
-
|
161
|
-
|
165
|
+
self.logger.info(
|
166
|
+
"Initialized AdvancedTracker for Monitoring and tracking with thresholds: "
|
167
|
+
f"high={tracker_config.track_high_thresh}, "
|
168
|
+
f"low={tracker_config.track_low_thresh}, "
|
169
|
+
f"new={tracker_config.new_track_thresh}"
|
170
|
+
)
|
162
171
|
processed_data = self.tracker.update(processed_data)
|
172
|
+
print("---------------------processed_5-----------------------------------")
|
173
|
+
print(processed_data)
|
163
174
|
|
164
175
|
except Exception as e:
|
165
176
|
# If advanced tracker fails, fallback to unsmoothed detections
|
@@ -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=
|
169
|
+
matrice/deploy/utils/post_processing/usecases/concrete_crack_detection.py,sha256=6CnS8Aag-ZJoFrJxhOFMb3Xt2G4P5wfFl9_TeW0E0jA,41307
|
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.
|
229
|
-
matrice-1.0.
|
230
|
-
matrice-1.0.
|
231
|
-
matrice-1.0.
|
232
|
-
matrice-1.0.
|
228
|
+
matrice-1.0.99140.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
|
229
|
+
matrice-1.0.99140.dist-info/METADATA,sha256=J55ccW-zzCwuiba6hXViCQw90Kmh7fRftaQ_j1S4QoM,14624
|
230
|
+
matrice-1.0.99140.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
231
|
+
matrice-1.0.99140.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
|
232
|
+
matrice-1.0.99140.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|