Skip to content

Commit 0d0328e

Browse files
authored
Updated the Triangle_annotator and the Dot_annotator in the annotator-core.py file
1 parent d821fca commit 0d0328e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

supervision/annotators/core.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -901,8 +901,13 @@ def annotate(
901901
else custom_color_lookup,
902902
)
903903
center = (int(xy[detection_idx, 0]), int(xy[detection_idx, 1]))
904-
cv2.circle(scene, center, self.radius, (0, 0, 0), self.outline_thickness)
905-
cv2.circle(scene, center, self.radius, color.as_bgr(), -1)
904+
905+
if self.outline_thickness:
906+
cv2.circle(scene, center, self.radius, (0,0,0), self.outline_thickness)
907+
cv2.circle(scene, center, self.radius, color.as_bgr(), -1)
908+
else:
909+
cv2.circle(scene, center, self.radius, color.as_bgr(), -1)
910+
906911
return scene
907912

908913

0 commit comments

Comments
 (0)