Turing311 commited on
Commit
f56c3b3
·
1 Parent(s): 9e7fe95
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -58,8 +58,8 @@ def compare_face(frame1, frame2):
58
  image1 = Image.open(frame1)
59
  image2 = Image.open(frame2)
60
 
61
- face1 = None
62
- face2 = None
63
  liveness1, age1, gender1, emotion1, ethnicity1, mask1, eye1, facehair1, haircolor1, hairtype1, headwear1, activity1, pitch1, roll1, yaw1, quality1 = [None] * 16
64
  liveness2, age2, gender2, emotion2, ethnicity2, mask2, eye2, facehair2, haircolor2, hairtype2, headwear2, activity2, pitch2, roll2, yaw2, quality2 = [None] * 16
65
  res1 = r.json().get('image1')
 
58
  image1 = Image.open(frame1)
59
  image2 = Image.open(frame2)
60
 
61
+ face1 = Image.new('RGBA',(150, 150), (80,80,80,0))
62
+ face2 = Image.new('RGBA',(150, 150), (80,80,80,0))
63
  liveness1, age1, gender1, emotion1, ethnicity1, mask1, eye1, facehair1, haircolor1, hairtype1, headwear1, activity1, pitch1, roll1, yaw1, quality1 = [None] * 16
64
  liveness2, age2, gender2, emotion2, ethnicity2, mask2, eye2, facehair2, haircolor2, hairtype2, headwear2, activity2, pitch2, roll2, yaw2, quality2 = [None] * 16
65
  res1 = r.json().get('image1')