This commit is contained in:
Patrick Morgan
2024-12-15 21:49:16 -08:00
parent a4ade96569
commit d04e426718
+2 -2
View File
@@ -363,12 +363,12 @@ class MaskContourProcessor:
pos = element['position']
radius = element['properties']['radius']
# Draw circle using Pillow
# Draw filled circle using Pillow
bbox = [
(pos['x'] - radius, pos['y'] - radius),
(pos['x'] + radius, pos['y'] + radius)
]
draw.ellipse(bbox, outline=self.element_color, width=1)
draw.ellipse(bbox, fill=self.element_color) # Fill the circle with white
# Convert the canvas to a numpy array and combine with the mask
canvas_np = np.array(canvas)