RFSMatchFacesDetectionFace

Objective-C


@interface RFSMatchFacesDetectionFace : NSObject

Swift

class MatchFacesDetectionFace : NSObject

RFSMatchFacesDetectionFace represents face detection information as a part of RFSMatchFacesResponse.

  • The index of the face detection object in the array of detections.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nonnull) NSNumber *faceIndex;

    Swift

    var faceIndex: NSNumber { get }
  • Main coordinates of the detected face (eyes, nose, lips, ears and etc.).

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nonnull) NSArray<RFSPoint *> *landmarks;

    Swift

    var landmarks: [RFSPoint] { get }
  • Rectangular area of the detected face in the original image.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGRect faceRect;

    Swift

    var faceRect: CGRect { get }
  • Rotation is measured counterclockwise in degrees, with zero indicating that a line drawn between the eyes is horizontal relative to the image orientation.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) NSNumber *rotationAngle;

    Swift

    var rotationAngle: NSNumber? { get }
  • Base64 image of the aligned and cropped portrait. Returned if RFSMatchFacesRequest.outputImageParams is set or predefined scenario is used.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) UIImage *crop;

    Swift

    var crop: UIImage? { get }
  • Coordinates of the rectangle with the face on the original image prepared for the face crop. Requires RFSOutputImageCrop.returnOriginalRect is set. Returns ‘CGRectZero’ if RFSOutputImageCrop.returnOriginalRect isn’t set.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGRect originalRect;

    Swift

    var originalRect: CGRect { get }
  • Unavailable

    Not the designated initializer

    Undocumented

    Declaration

    Objective-C

    RFS_EMPTY_INIT_UNAVAILABLE
  • Unavailable

    Not the designated initializer

    Undocumented

    Declaration

    Objective-C

    RFS_EMPTY_INIT_UNAVAILABLE