PresentID Photo ID matching API evaluates whether two faces belong to the same person or not.
The Verify API performs authentication against two detected faces. Practically, it evaluates whether two faces belong to the same person or not. This capability is potentially useful in security scenarios.
Input:
Output:
Rules & Restrictions:
Face Verification Tutorial Youtube Video
import requests
api_url = 'FaceVerification URL'
api_key = 'Your API Key'
image1_path = 'Path to image1 directory'
image1_name = 'Image name1'
image2_path = 'Path to image2 directory'
image2_name = 'Image name2'
files = {'Photo1': (image1_name, open(image1_path + image1_name, 'rb'), 'multipart/form-data'),
'Photo2': (image2_name, open(image2_path + image2_name, 'rb'), 'multipart/form-data')}
header = {
"x-rapidapi-host": "face-recognition4.p.rapidapi.com",
"x-rapidapi-key": api_key
}
response = requests.post(api_url, files=files, headers=header)