feat: update tracking working
This commit is contained in:
parent
9e4c23c75c
commit
255be78d43
2 changed files with 62 additions and 97 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue