Spaces:
Sleeping
Sleeping
gokaygokay
commited on
Commit
•
5e123da
1
Parent(s):
d9cf2fe
Update app.py
Browse files
app.py
CHANGED
@@ -59,6 +59,8 @@ def plot_bbox(image, data):
|
|
59 |
return fig
|
60 |
|
61 |
def draw_polygons(image, prediction, fill_mask=False):
|
|
|
|
|
62 |
draw = ImageDraw.Draw(image)
|
63 |
scale = 1
|
64 |
for polygons, label in zip(prediction['polygons'], prediction['labels']):
|
|
|
59 |
return fig
|
60 |
|
61 |
def draw_polygons(image, prediction, fill_mask=False):
|
62 |
+
colormap = ['blue','orange','green','purple','brown','pink','gray','olive','cyan','red',
|
63 |
+
'lime','indigo','violet','aqua','magenta','coral','gold','tan','skyblue']
|
64 |
draw = ImageDraw.Draw(image)
|
65 |
scale = 1
|
66 |
for polygons, label in zip(prediction['polygons'], prediction['labels']):
|