RRFaceDetectionHeadOrientation

Objective-C

NS_ENUM(NSInteger, RRFaceDetectionHeadOrientation) {
  /// Head is upright orientated and is facing the camera
  RRFaceDetectionHeadOrientationStraight = 0,
  /// Head is not upright or not facing the camera
  RRFaceDetectionHeadOrientationRotated = 1,
  /// Head orientation could not be determined (This applies to devices prior to iOS 12.0)
  RRFaceDetectionHeadOrientationUndefined = 2
}

Swift

enum RRFaceDetectionHeadOrientation : Int

Undocumented

  • Head is upright orientated and is facing the camera

    Declaration

    Objective-C

    RRFaceDetectionHeadOrientationStraight = 0

    Swift

    case straight = 0
  • Head is not upright or not facing the camera

    Declaration

    Objective-C

    RRFaceDetectionHeadOrientationRotated = 1

    Swift

    case rotated = 1
  • Head orientation could not be determined (This applies to devices prior to iOS 12.0)

    Declaration

    Objective-C

    RRFaceDetectionHeadOrientationUndefined = 2

    Swift

    case undefined = 2