Spaces:
Sleeping
Sleeping
Update modeles/insightface_facialRecognition_livenessVerification.py
Browse files
modeles/insightface_facialRecognition_livenessVerification.py
CHANGED
|
@@ -53,8 +53,8 @@ def verify_face_and_liveness(image_path, template_path, threshold=0.5):
|
|
| 53 |
|
| 54 |
def verify_identity(image_path, template_path) :
|
| 55 |
result = DeepFace.verify(
|
| 56 |
-
|
| 57 |
-
|
| 58 |
enforce_detection=False,
|
| 59 |
anti_spoofing=True
|
| 60 |
)
|
|
|
|
| 53 |
|
| 54 |
def verify_identity(image_path, template_path) :
|
| 55 |
result = DeepFace.verify(
|
| 56 |
+
image_path,
|
| 57 |
+
template_path,
|
| 58 |
enforce_detection=False,
|
| 59 |
anti_spoofing=True
|
| 60 |
)
|