justin2341 commited on
Commit
3bb213c
1 Parent(s): 597c49e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -9
app.py CHANGED
@@ -230,15 +230,6 @@ def check_liveness_base64():
230
 
231
  faceBoxes = (FaceBox * maxFaceCount)()
232
  faceCount = faceDetection(image_np, image_np.shape[1], image_np.shape[0], faceBoxes, maxFaceCount)
233
- if faceCount == 0:
234
- image = image.rotate(90, expand=True)
235
- faceCount = faceDetection(image_np, image_np.shape[1], image_np.shape[0], faceBoxes, maxFaceCount)
236
- if faceCount == 0:
237
- image = image.rotate(90, expand=True)
238
- faceCount = faceDetection(image_np, image_np.shape[1], image_np.shape[0], faceBoxes, maxFaceCount)
239
- if faceCount == 0:
240
- image = image.rotate(90, expand=True)
241
- faceCount = faceDetection(image_np, image_np.shape[1], image_np.shape[0], faceBoxes, maxFaceCount)
242
 
243
  for i in range(faceCount):
244
  landmark_68 = []
 
230
 
231
  faceBoxes = (FaceBox * maxFaceCount)()
232
  faceCount = faceDetection(image_np, image_np.shape[1], image_np.shape[0], faceBoxes, maxFaceCount)
 
 
 
 
 
 
 
 
 
233
 
234
  for i in range(faceCount):
235
  landmark_68 = []