mirror of
https://github.com/ultralytics/ultralytics.git
synced 2025-09-15 15:48:41 +08:00
Fix queue counts (#15971)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: Muhammad Rizwan Munawar <muhammadrizwanmunawar123@gmail.com> Co-authored-by: RizwanMunawar <chr043416@gmail.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
7c7f456710
commit
b2ab667f00
@ -89,7 +89,7 @@ class QueueManager:
|
||||
"""Extracts and processes tracks for queue management in a video stream."""
|
||||
# Initialize annotator and draw the queue region
|
||||
self.annotator = Annotator(self.im0, self.tf, self.names)
|
||||
|
||||
self.counts = 0 # Reset counts every frame
|
||||
if tracks[0].boxes.id is not None:
|
||||
boxes = tracks[0].boxes.xyxy.cpu()
|
||||
clss = tracks[0].boxes.cls.cpu().tolist()
|
||||
@ -132,7 +132,6 @@ class QueueManager:
|
||||
txt_color=self.count_txt_color,
|
||||
)
|
||||
|
||||
self.counts = 0 # Reset counts after displaying
|
||||
self.display_frames()
|
||||
|
||||
def display_frames(self):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user