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:
Burhan 2024-04-02 06:24:29 -04:00 committed by GitHub
parent 1e547e60a0
commit 3208eb72ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 236 additions and 93 deletions

View file

@ -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)