feat: update tracking working

This commit is contained in:
ziesorx 2025-09-23 18:08:21 +07:00
parent 9e4c23c75c
commit 255be78d43
2 changed files with 62 additions and 97 deletions

View file

@ -146,6 +146,17 @@ class TrackingPipelineIntegration:
persist=True
)
# Debug: Log raw detection results
if tracking_results and hasattr(tracking_results, 'detections'):
raw_detections = len(tracking_results.detections)
if raw_detections > 0:
class_names = [detection.class_name for detection in tracking_results.detections]
logger.info(f"[DEBUG] Raw detections: {raw_detections}, classes: {class_names}")
else:
logger.debug(f"[DEBUG] No raw detections found")
else:
logger.debug(f"[DEBUG] No tracking results or detections attribute")
# Process tracking results
tracked_vehicles = self.tracker.process_detections(
tracking_results,