Version 1

POST https://okaylivefacedemo.innov8tif.com/api/check_liveness

Request Body

{    
    "probability": 0.99,    
    "score": 9.0,    
    "quality": 1.0 
}, 

"Meta" parameter is not required but it can significantly decrease overall error rate. The current version of API supports mobile OS setting.

If you're not sure about the device meta, please set 'UNKNOWN' value or just not to pass 'Meta' in the header.

Interpretation of Result

The response of "score" and "quality" is NOT suggested to be used for the decision making for detection result.

  • Probability of liveness is a main response of the system.

  • The image is accepted as "live" when a probability is bigger than 0.5.

  • Linear liveness score can be used for BPCER / APCER tuning. The range of score is (ln 1e-7, -ln 1e-7).

  • Quality value is a probability of "appropriate image".

  • Probability can be lower than 0.5 by the reasons below.

    • Face minimal side is less than 180 pix or distance between eyes is less than 90 pix.

    • Face out-of-plane rotation is bigger than 20 degrees.

    • The distance between face and camera is very small, so the face can be significantly distorted.

    • The luminous power is insufficient.

    • High motion or gaussian blur rate or light shot.

We highly advise to analyze quality value and reject inappropriate images.

OK response data is always in JSON format. If you received code 200, your data has been accepted, however, there can be one of the following error messages:

Error message also comes with with error code.

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-compressioning. Photo capturing mode result in an increase of True Liveness Rate because it relies less on blur effects.

  • Recommended height: 720 or 1080.

  • Minimal supported height: 480.

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

  • Minimum image size(width/height): 450px

  • 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.

  • Minimal distance between the eyes of the subject: 80 px.

  • Minimal face size is 224 pixels in any dimension.

  • Sun glasses 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.

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

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

  • Rectangular-shaped object in background can significantly increase BPCER.

Correct Sample

Incorrect Sample

Capture module

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

Mobile Web

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

Last updated