IDFaceMatcher

IDFaceMatcher API

IDFaceMatcher

The Face Matcher API offers a service to perform a face verification between two images. The process is quite straightforward. You just create a POST request that sends two face images, and the API returns the verification result in JSON format. Note that each image must contain only one face. Otherwise, the verification step cannot be done and the system returns an error code. 
POST request in Python

import requests

key = "{key}" # ask for your personal key
url = 'http://idsolverdev.solverml.com/facematcher'

image1 = open('face1.jpg', 'rb')
image2 = open('face2.jpg', 'rb')
r = requests.post(url, data={"key": key}, files={"image1": image1, "image2": image2})
print(r.text)

JSON response 
{ "faces1": [{  # faces in first image
      "box": {
        "bottom": 187,
        "left": 67,
        "right": 175,
        "top": 80}}],
  "faces2": [ # faces in second image
      "box": {
        "bottom": 464,
        "left": 241,
        "right": 464,
        "top": 242}}],
  "match": true,   # result of matching
  "score": 0.34     # score of matching
  "status": "OK"  # only one face in each image
}
Share by: