ammariii08 commited on
Commit
62a0b65
·
verified ·
1 Parent(s): a8610a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.zeros_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)
 
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)