DerrylNessie commited on
Commit
aefb2ac
1 Parent(s): 3aee4cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -15,7 +15,7 @@ def midpoint(x1, y1, x2, y2):
15
  y_mid = int((y1 + y2)/2)
16
  return (x_mid, y_mid)
17
 
18
- def draw_mask(img, bounds, color='yellow', width=2):
19
  draw = ImageDraw.Draw(img, "RGBA")
20
  for bound in bounds:
21
  p0, p1, p2, p3 = bound[0]
@@ -40,11 +40,11 @@ def draw_mask(img, bounds, color='yellow', width=2):
40
  #masking
41
 
42
  return img
43
-
44
  def remove_text(img,imgwmask):
45
  masked = cv2.bitwise_and(img, img, mask=imgwmask)
46
  return img
47
-
48
  def inference(img, lang):
49
  if lang == "english":
50
  lang = ['en']
 
15
  y_mid = int((y1 + y2)/2)
16
  return (x_mid, y_mid)
17
 
18
+ def draw_mask(img, bounds):
19
  draw = ImageDraw.Draw(img, "RGBA")
20
  for bound in bounds:
21
  p0, p1, p2, p3 = bound[0]
 
40
  #masking
41
 
42
  return img
43
+ """
44
  def remove_text(img,imgwmask):
45
  masked = cv2.bitwise_and(img, img, mask=imgwmask)
46
  return img
47
+ """
48
  def inference(img, lang):
49
  if lang == "english":
50
  lang = ['en']