Add return check for 'yolo solutions help' (#17518)
This commit is contained in:
parent
f9d889dd4d
commit
3682f01d12
2 changed files with 4 additions and 1 deletions
|
|
@ -671,6 +671,9 @@ def handle_yolo_solutions(args: List[str]) -> None:
|
|||
)
|
||||
s_n = "count" # Default solution if none provided
|
||||
|
||||
if args and args[0] == "help": # Add check for return if user call `yolo solutions help`
|
||||
return
|
||||
|
||||
cls, method = SOLUTION_MAP[s_n] # solution class name, method name and default source
|
||||
|
||||
from ultralytics import solutions # import ultralytics solutions
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ class Analytics(BaseSolution):
|
|||
self.y_label = "Total Counts"
|
||||
|
||||
# Predefined data
|
||||
self.bg_color = "#00F344" # background color of frame
|
||||
self.bg_color = "#F3F3F3" # background color of frame
|
||||
self.fg_color = "#111E68" # foreground color of frame
|
||||
self.title = "Ultralytics Solutions" # window name
|
||||
self.max_points = 45 # maximum points to be drawn on window
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue