We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My Code
const face1 = await faceapi.detectSingleFace(file1).withFaceLandmarks().withFaceDescriptor(); const face2 = await faceapi.detectSingleFace(file2).withFaceLandmarks().withFaceDescriptor(); if ( face1 && face2 ) { const distance = faceapi.euclideanDistance(face1.descriptor, face2.descriptor); const threshold = 0.6; console.log(new Date() + " - " + distance + imagePath); if (distance < threshold) { console.log('Image Has Been Matched'); } else { alert('Faces are not similar'); } }
here file1 is base64 string and file2 is image link eg(https://example.com/image.jpg)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
My Code
The text was updated successfully, but these errors were encountered: