OkayLive

Image Requirements

Originally, anti-spoofing methods have been developed on smartphone database, which consists of 720p and 1080p horizontally and vertically oriented selfies, taken without any additional post-compression. Photo capturing mode result in an increase of True Liveness Rate because it relies less on blur effects.

  • Recommended image size: 600x800 to 960x1280. 🆕

  • Recommended height: 800px or 1080px. 🆕

  • Minimal supported height: 800px. 🆕

  • No image compression is highly recommended: JPEG 70 level as low as practicable.

  • Vertical Orientation

It’s recommended to use uncompressed formats. If it’s not possible, then it’s recommended to compress image with the highest quality. The difference between near compression levels is invisible to the naked eye but very significant for the anti-spoofing methods retina.

Face Requirements

  • Out-of-plane rotation angle: from -20±3 to 20±3 degrees.

  • In-plane rotation angle: from -30±3 to 30±3 degrees.

  • The minimal distance between the eyes of the subject: 80 px.

  • The minimal face size is 224 pixels in any dimension.

  • Sunglasses can be confusing.

Capture Requirements

  • Motion blur effect can significantly increase BPCER.

  • Fish-eye lenses are not supported by this API.

  • Texture filtering can significantly increase APCER.

  • Spotlights on the faces and nearest surroundings can significantly increase BPCER.

  • Ill-lighted environment and colored light can significantly increase BPCER.

  • Rectangular-shaped objects in the background can significantly increase BPCER.

Bad Sample

Checking
Error Code
Sample Image

Selfie Occlusion Check

FACE_IS_OCCLUDED

Face Detection

FACE_NOT_FOUND

Multiple Face Detection

TOO_MANY_FACES

Face Distance Check

FACE_ANGLE_TOO_LARGE

Face Distance Check

FACE_TOO_SMALL

Eye Closed Detection

EYES_CLOSED

Face Distance Check

FACE_CLOSE_TO_BORDER

Good Sample

Selfie Image

Capture module

Capturing images and pictures correctly with the mobile device camera is an important element of the anti-spoofing detection routine.

Mobile Web

There are two general approaches in Web API to capture a single frame:

Source

Pros

Cons

Compatibility

Sample Code

File API

Available from any browser

Camera mode control not guaranteed

Low

-

getUserMedia

Camera mode control

The list of supported browsers is limited

High

Last updated