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.