Skip to content

Commit

Permalink
Merge pull request #63 from ChaseDDevelopment/line-zone-detections-fix
Browse files Browse the repository at this point in the history
Fix issue where the LineZone.trigger function expects 4 values instead of 5
  • Loading branch information
SkalskiP authored Apr 13, 2023
2 parents e091f9c + 2cf7a9b commit e9649ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supervision/detection/line_counter.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def trigger(self, detections: Detections):
detections (Detections): The detections for which to update the counts.
"""
for xyxy, confidence, class_id, tracker_id in detections:
for xyxy, _, confidence, class_id, tracker_id in detections:
# handle detections with no tracker_id
if tracker_id is None:
continue
Expand Down

0 comments on commit e9649ac

Please sign in to comment.