Skip to content

Eye state#

The eye state estimation determines whether the eyes in a detected face are open or closed.

Behavior in different platforms#

In LUNA ID for Android#

  • Best shot with closed eyes: In some scenarios, a frame with a face that has closed eyes can still be considered the best shot. For details, see Getting the best shot with faces with closed eyes.
  • Dynamic Liveness: If Dynamic Liveness is enabled, all frames can be considered the best shots regardless of the eye status.

In LUNA ID for iOS#

  • Skipping frames with closed eyes: Frames where one or both eyes are closed are automatically skipped.
  • Dynamic Liveness: If Dynamic Liveness is enabled, all frames can be considered the best shots regardless of the eye status.

Implementation#

Platform Implementation
LUNA ID for Android The estimation is performed only if eye interaction is enabled.
LUNA ID for iOS @property (nonatomic, assign) BOOL checkEyes;
If set to true, the best shot with closed eyes will be skipped.