Spaces:
Runtime error
Runtime error
Update overlay.py
Browse files- overlay.py +2 -2
overlay.py
CHANGED
@@ -2,9 +2,9 @@ import cv2
|
|
2 |
from PIL import ImageFont, ImageDraw, Image
|
3 |
|
4 |
def process(img,font_text,font_fac,font_x,font_y,font_col,font_op):
|
5 |
-
img.save('tmp.png')
|
6 |
|
7 |
-
img = Image.open(
|
8 |
im=img
|
9 |
#im=Image.open(img)
|
10 |
txt = Image.new('RGBA', im.size, (255,255,255,0))
|
|
|
2 |
from PIL import ImageFont, ImageDraw, Image
|
3 |
|
4 |
def process(img,font_text,font_fac,font_x,font_y,font_col,font_op):
|
5 |
+
#img.save('tmp.png')
|
6 |
|
7 |
+
img = Image.open(img).convert("RGBA")
|
8 |
im=img
|
9 |
#im=Image.open(img)
|
10 |
txt = Image.new('RGBA', im.size, (255,255,255,0))
|