Update face_verification.py
Browse files- face_verification.py +0 -1
face_verification.py
CHANGED
|
@@ -28,6 +28,5 @@ def get_face_embeddings(image_path):
|
|
| 28 |
def face_comparison(img1_path, img2_path, threshold=0.6):
|
| 29 |
emb1 = np.array(get_face_embeddings(img1_path))
|
| 30 |
emb2 = np.array(get_face_embeddings(img2_path))
|
| 31 |
-
|
| 32 |
similarity = np.dot(emb1, emb2) / (norm(emb1) * norm(emb2))
|
| 33 |
return similarity > threshold
|
|
|
|
| 28 |
def face_comparison(img1_path, img2_path, threshold=0.6):
|
| 29 |
emb1 = np.array(get_face_embeddings(img1_path))
|
| 30 |
emb2 = np.array(get_face_embeddings(img2_path))
|
|
|
|
| 31 |
similarity = np.dot(emb1, emb2) / (norm(emb1) * norm(emb2))
|
| 32 |
return similarity > threshold
|