Face Verification

FREEMIUM
Verified
โœ“
By PresentID | Updated 3 days ago | Visual Recognition
Popularity

9.4 / 10

Latency

2,475ms

Service Level

100%

Health Check

N/A

Back to All Tutorials (1)

Face Verification

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:

  • Image file
  • Image URL link
  • Base64 image

Output:

  • Result index
  • Image specs
  • Similar percent
  • Result message

Rules & Restrictions:

  • Send data via Base64 or an image URL or an image file.
  • Image size should not exceed 8 MB.
  • Also, the images should not be larger than 5000 pixels and smaller than 50 pixels.

Face Verification Tutorial Youtube Video

Python Quick Start

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)