Spaces:
Sleeping
Sleeping
Update
Browse files
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 =
|
| 62 |
-
face2 =
|
| 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')
|