IDFaceExtractor

IDFaceExtractor API

IDFaceExtractor

The Face Extractor API offers a service to perform a face detection from an ID document. The process is quite straightforward. You just create a POST request that sends a front image from the document, and the API returns the face detected in JSON format. Note that more than one face can be detected. 
POST request in Python

import requests

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

image = open('id_font.jpg', 'rb')
r = requests.post(url, data={"key": key}, files={"image": image})
print(r.text)
 

JSON response
{
    "Nfaces": 1,   # number of faces found
    "faces": [
        {
            "box": {   # bounding box for each face
                "bottom": 269,
                "left": 25,
                "right": 154,
                "top": 140}}]
}
Share by: