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 2024-06-20 12:44:29 +03:00
parent 272a9cb35e
commit eec3615250
No known key found for this signature in database
GPG Key ID: CF0835DFDF14CA38
1 changed files with 1 additions and 4 deletions

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