Spaces:
Running
Running
justin2341
commited on
Update app.py
Browse files
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 = []
|