Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 10, 2023
1 parent 7126ae5 commit 7e69d58
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ultralytics/solutions/counter.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@


class Counter:
"""
A class to manage the counting of objects in a real-time video stream based on their tracks.
"""
"""A class to manage the counting of objects in a real-time video stream based on their tracks."""

def __init__(self):
"""Initializes the Counter with default values for various tracking and counting parameters."""
Expand Down Expand Up @@ -73,9 +71,7 @@ def mouse_event_for_region(self, event, x, y, flags, params):
selected_point = None

def extract_tracks(self):
"""
This function extracts tracking information and stores it in variables for use in the counting process.
"""
"""This function extracts tracking information and stores it in variables for use in the counting process."""
self.tracked_boxes = self.tracks[0].boxes.xywh.cpu()
self.tracked_ids = self.tracks[0].boxes.id.cpu()
self.clss = self.tracks[0].boxes.cls.cpu().tolist()
Expand Down

0 comments on commit 7e69d58

Please sign in to comment.