ultralytics 8.2.57 new Solutions Tests and Docs (#14408)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
100a73b6e9
commit
c67a3039c1
12 changed files with 143 additions and 50 deletions
|
|
@ -17,7 +17,7 @@ class ObjectCounter:
|
|||
|
||||
def __init__(
|
||||
self,
|
||||
classes_names,
|
||||
names,
|
||||
reg_pts=None,
|
||||
count_reg_color=(255, 0, 255),
|
||||
count_txt_color=(0, 0, 0),
|
||||
|
|
@ -37,7 +37,7 @@ class ObjectCounter:
|
|||
Initializes the ObjectCounter with various tracking and counting parameters.
|
||||
|
||||
Args:
|
||||
classes_names (dict): Dictionary of class names.
|
||||
names (dict): Dictionary of class names.
|
||||
reg_pts (list): List of points defining the counting region.
|
||||
count_reg_color (tuple): RGB color of the counting region.
|
||||
count_txt_color (tuple): RGB color of the count text.
|
||||
|
|
@ -72,7 +72,7 @@ class ObjectCounter:
|
|||
self.view_in_counts = view_in_counts
|
||||
self.view_out_counts = view_out_counts
|
||||
|
||||
self.names = classes_names # Classes names
|
||||
self.names = names # Classes names
|
||||
self.annotator = None # Annotator
|
||||
self.window_name = "Ultralytics YOLOv8 Object Counter"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue