Face compare API is not able to overcome the laws of physics and works exclusively within its capabilities. The image resolution should be at least 1280x720. However, 1920x1080 is recommended.
For the face compare API to work at its full potential it is important to follow the image input guidelines as stated below. Each section contains good and bad examples to help visualize any issues you might experience regarding bad lighting, misalignment, reflections, etc.
The face should not be tilted or turned more than 10 degrees in any direction or orientation.
Ensure that the document does not take up too much or too little of the screen real-estate. A good ratio to aim for is to keep the document between 70% and 90% of the screen real-estate.
The face should be in focus and not blurred.
Ensure the image has proper lighting. Avoid over exposure, under exposure, too much or too little background or foreground lighting, glares, and reflections.
Light coming from behind the subject.
Occurs when an image receives too much light, causing bright areas to lose detail.
Improper light balance or shadows on the face.
Occurs when an image receives too little light, causing dark areas to lose detail.
Remove all facial accessories and obstructions, as these can prevent the API from detecting all the necessary facial details. These include, but are not limited to:
Glasses
Hats
Headphones
Hoodies
Masks
Hair in front of the face
The face should be centered in the middle of the frame and no details should be cut off.