Liveness Detection

The liveness feature in the OpenCV FR Server is integrated into the Person Enrollment, Face Search (1:N) and Face Compare (1:1) functions. A standalone liveness check API is not available.

To prevent fraud using high-resolution printouts, masks, or video replays, the liveness image imposes stricter requirements on the image. Liveness image requirement:

Our API processes the area around the face, so the optimal resolution will depend on the image content. Assuming a portrait orientation, with the face centered and taking at least 1/4 of the image area, the minimum image resolution is SVGA (600x800). In general, images captured in higher resolution will result in better accuracy.

  • The minimum size of a face box that can be processed is 150x150 pixels.

  • The padding between the face box and the image's borders should be at least 15 pixels.

  • The distance between the pupils on the face should be at least 50 pixels.

  • The out-of-plane rotation angle (face pitch and yaw) should be no more than ±30 degrees.

  • There should only be one main face on the image. It should be fully visible within a frame and fully

  • Fish-eye lenses and sunglass images are not supported.

Last updated