Instance Property

rightEyeClosed

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

Declaration

var rightEyeClosed: Bool { get }

Discussion

“Right” 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 leftEyeClosed: Bool

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