Omnibus commited on
Commit
dcd005f
·
1 Parent(s): 506db25

Update overlay.py

Browse files
Files changed (1) hide show
  1. 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('tmp.png').convert("RGBA")
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))