refactor: remove else statement for thickness in circle not needed

Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
This commit is contained in:
Onuralp SEZER committed 2024-06-20 12:45:55 +03:00
1 parent 272a9cb35e
commit eec3615250
1 file changed
+1 -4
+1 -4
View File
@@ -902,14 +902,11 @@ class DotAnnotator(BaseAnnotator):
)
center = (int(xy[detection_idx, 0]), int(xy[detection_idx, 1]))
cv2.circle(scene, center, self.radius, color.as_bgr(), -1)
if self.outline_thickness:
cv2.circle(
scene, center, self.radius, (0, 0, 0), self.outline_thickness
)
cv2.circle(scene, center, self.radius, color.as_bgr(), -1)
else:
cv2.circle(scene, center, self.radius, color.as_bgr(), -1)
return scene