Zhu-FaceOnLive commited on
Commit
f866611
1 Parent(s): 42da2e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -62,7 +62,7 @@ def check_liveness():
62
  elif ret > 1:
63
  result = "multiple face detected!"
64
  elif faceRect[0] < 0 or faceRect[1] < 0 or faceRect[2] >= image.shape[1] or faceRect[2] >= image.shape[0]:
65
- result = "faace is in boundary!"
66
  elif livenessScore[0] > 0.5:
67
  result = "genuine"
68
  else:
@@ -95,7 +95,7 @@ def check_liveness_base64():
95
  elif ret > 1:
96
  result = "multiple face detected!"
97
  elif faceRect[0] < 0 or faceRect[1] < 0 or faceRect[2] >= image.shape[1] or faceRect[2] >= image.shape[0]:
98
- result = "faace is in boundary!"
99
  elif livenessScore[0] > 0.5:
100
  result = "genuine"
101
  else:
 
62
  elif ret > 1:
63
  result = "multiple face detected!"
64
  elif faceRect[0] < 0 or faceRect[1] < 0 or faceRect[2] >= image.shape[1] or faceRect[2] >= image.shape[0]:
65
+ result = "face is in boundary!"
66
  elif livenessScore[0] > 0.5:
67
  result = "genuine"
68
  else:
 
95
  elif ret > 1:
96
  result = "multiple face detected!"
97
  elif faceRect[0] < 0 or faceRect[1] < 0 or faceRect[2] >= image.shape[1] or faceRect[2] >= image.shape[0]:
98
+ result = "face is in boundary!"
99
  elif livenessScore[0] > 0.5:
100
  result = "genuine"
101
  else: