Instance Property

leftEyeClosed

A Boolean value that indicates whether the a closed left eye is detected in the face.

Declaration

var leftEyeClosed: Bool { get }

Discussion

“Left” is relative to the original (non-mirrored) image orientation, not to the owner of the eye.

For closed eyes to be detected, the key CIDetectorEyeBlink must be present with a value of true in the dictionary passed to a detector’s features(in:options:) method.

See Also

Identifying Facial Features

var hasLeftEyePosition: Bool

A Boolean value that indicates whether the detector found the face’s left eye.

var hasRightEyePosition: Bool

A Boolean value that indicates whether the detector found the face’s right eye.

var hasMouthPosition: Bool

A Boolean value that indicates whether the detector found the face’s mouth.

var leftEyePosition: CGPoint

The coordinates of the left eye, in image coordinates.

var rightEyePosition: CGPoint

The coordinates of the right eye, in image coordinates

var mouthPosition: CGPoint

The coordinates of the mouth, in image coordinates

var hasSmile: Bool

A Boolean value that indicates whether a smile is detected in the face.

var rightEyeClosed: Bool

A Boolean value that indicates whether the a closed left eye is detected in the face.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software