Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -532,7 +532,7 @@ def predict(
|
|
532 |
# --- Draw only the new contours (final_polygons_inch) on the clean output image ---
|
533 |
draw_polygons_inch(final_polygons_inch, output_img, scaling_factor, processed_size[0], color=(0,0,255), thickness=2)
|
534 |
# Also prepare an "Outlines" image based on a blank canvas for clarity.
|
535 |
-
new_outlines = np.
|
536 |
draw_polygons_inch(final_polygons_inch, new_outlines, scaling_factor, processed_size[0], color=(0,0,255), thickness=2)
|
537 |
if annotation_text.strip():
|
538 |
text_px = int(text_x / scaling_factor)
|
|
|
532 |
# --- Draw only the new contours (final_polygons_inch) on the clean output image ---
|
533 |
draw_polygons_inch(final_polygons_inch, output_img, scaling_factor, processed_size[0], color=(0,0,255), thickness=2)
|
534 |
# Also prepare an "Outlines" image based on a blank canvas for clarity.
|
535 |
+
new_outlines = np.ones_like(output_img) * 255
|
536 |
draw_polygons_inch(final_polygons_inch, new_outlines, scaling_factor, processed_size[0], color=(0,0,255), thickness=2)
|
537 |
if annotation_text.strip():
|
538 |
text_px = int(text_x / scaling_factor)
|