omarelsayeed
commited on
Commit
•
c1e6275
1
Parent(s):
0b742a9
Update app.py
Browse files
app.py
CHANGED
@@ -114,7 +114,7 @@ def draw_bboxes_on_image(image_path, bboxes, classes, reading_order):
|
|
114 |
}
|
115 |
|
116 |
# Open the image using PIL
|
117 |
-
image =
|
118 |
overlay = Image.new("RGBA", image.size, (255, 255, 255, 0)) # Transparent overlay
|
119 |
draw = ImageDraw.Draw(overlay)
|
120 |
|
|
|
114 |
}
|
115 |
|
116 |
# Open the image using PIL
|
117 |
+
image = image_path.convert("RGBA")
|
118 |
overlay = Image.new("RGBA", image.size, (255, 255, 255, 0)) # Transparent overlay
|
119 |
draw = ImageDraw.Draw(overlay)
|
120 |
|