increase dot radius
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ def predict(image):
|
|
| 42 |
print("new labels", new_labels)
|
| 43 |
print("color map", color_map)
|
| 44 |
print("colors array", colors)
|
| 45 |
-
dot_annotator = sv.DotAnnotator(color=sv.ColorPalette(colors=colors), color_lookup=sv.ColorLookup.INDEX)
|
| 46 |
|
| 47 |
image = dot_annotator.annotate(image, detections)
|
| 48 |
return image, gr.HTML("".join(color_html))
|
|
|
|
| 42 |
print("new labels", new_labels)
|
| 43 |
print("color map", color_map)
|
| 44 |
print("colors array", colors)
|
| 45 |
+
dot_annotator = sv.DotAnnotator(color=sv.ColorPalette(colors=colors), color_lookup=sv.ColorLookup.INDEX, radius=10)
|
| 46 |
|
| 47 |
image = dot_annotator.annotate(image, detections)
|
| 48 |
return image, gr.HTML("".join(color_html))
|