ultralytics 8.1.42 add YOLOv9 Segment models (#9296)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: Laughing <61612323+Laughing-q@users.noreply.github.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
1e547e60a0
commit
3208eb72ef
25 changed files with 236 additions and 93 deletions
|
|
@ -364,6 +364,7 @@ class Annotator:
|
|||
cv2.circle(self.im, (int(track[-1][0]), int(track[-1][1])), track_thickness * 2, color, -1)
|
||||
|
||||
def queue_counts_display(self, label, points=None, region_color=(255, 255, 255), txt_color=(0, 0, 0), fontsize=0.7):
|
||||
"""Displays queue counts on an image centered at the points with customizable font size and colors."""
|
||||
x_values = [point[0] for point in points]
|
||||
y_values = [point[1] for point in points]
|
||||
center_x = sum(x_values) // len(points)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue