RFSHeadSizeAndPosition

Objective-C

@interface RFSHeadSizeAndPosition: NSObject

/// The position of the "middle point" (the middle of the line connecting the eye centers) relative to the width of the image.
/// The range is from 0 to 1 where range [0.5, 0.5] is for "middle point" strictly in the center .
+ (RFSImageQualityCharacteristic *)faceMidPointHorizontalPosition;

/// The position of the "middle point" (the middle of the line connecting the eye centers) relative to the height of the image.
/// The range is from 0 to 1 where range [0.5, 0.5] is for "middle point" strictly in the center .
+ (RFSImageQualityCharacteristic *)faceMidPointVerticalPosition;

/// The head width to the image width ratio.
/// The range is from 0 to 1.
+ (RFSImageQualityCharacteristic *)headWidthRatio;

/// The head height to the image height ratio.
/// The range is from 0 to 1.
+ (RFSImageQualityCharacteristic *)headHeightRatio;

/// Inter-eye distance — the length of the line connecting the eye centers of the left and right eye, pixels.
+ (RFSImageQualityCharacteristic *)eyesDistance;

/// The yaw of the head, degrees.
/// The range is from -90 to 90. Range value [0, 0] for strictly stright head position.
+ (RFSImageQualityCharacteristic *)yaw;

/// The pitch of the head, degrees.
/// The range is from -90 to 90. Range value [0, 0] for strictly stright head position.
+ (RFSImageQualityCharacteristic *)pitch;

/// The roll of the head, degrees.
/// The range is from -90 to 90. Range value [0, 0] for strictly stright head position.
+ (RFSImageQualityCharacteristic *)roll;

/// All Group characteristics with default (recommended) values.
/// Doesn't include characteristics without default values.
+ (NSArray<RFSImageQualityCharacteristic *> *)allRecommended;

RFS_EMPTY_INIT_UNAVAILABLE

@end

Swift

class HeadSizeAndPosition : NSObject

Undocumented

  • The position of the “middle point” (the middle of the line connecting the eye centers) relative to the width of the image. The range is from 0 to 1 where range [0.5, 0.5] is for “middle point” strictly in the center .

    Declaration

    Objective-C

    + (nonnull RFSImageQualityCharacteristic *)faceMidPointHorizontalPosition;

    Swift

    class func faceMidPointHorizontalPosition() -> ImageQualityCharacteristic
  • The position of the “middle point” (the middle of the line connecting the eye centers) relative to the height of the image. The range is from 0 to 1 where range [0.5, 0.5] is for “middle point” strictly in the center .

    Declaration

    Objective-C

    + (nonnull RFSImageQualityCharacteristic *)faceMidPointVerticalPosition;

    Swift

    class func faceMidPointVerticalPosition() -> ImageQualityCharacteristic
  • The head width to the image width ratio. The range is from 0 to 1.

    Declaration

    Objective-C

    + (nonnull RFSImageQualityCharacteristic *)headWidthRatio;

    Swift

    class func headWidthRatio() -> ImageQualityCharacteristic
  • The head height to the image height ratio. The range is from 0 to 1.

    Declaration

    Objective-C

    + (nonnull RFSImageQualityCharacteristic *)headHeightRatio;

    Swift

    class func headHeightRatio() -> ImageQualityCharacteristic
  • Inter-eye distance — the length of the line connecting the eye centers of the left and right eye, pixels.

    Declaration

    Objective-C

    + (nonnull RFSImageQualityCharacteristic *)eyesDistance;

    Swift

    class func eyesDistance() -> ImageQualityCharacteristic
  • The yaw of the head, degrees. The range is from -90 to 90. Range value [0, 0] for strictly stright head position.

    Declaration

    Objective-C

    + (nonnull RFSImageQualityCharacteristic *)yaw;

    Swift

    class func yaw() -> ImageQualityCharacteristic
  • The pitch of the head, degrees. The range is from -90 to 90. Range value [0, 0] for strictly stright head position.

    Declaration

    Objective-C

    + (nonnull RFSImageQualityCharacteristic *)pitch;

    Swift

    class func pitch() -> ImageQualityCharacteristic
  • The roll of the head, degrees. The range is from -90 to 90. Range value [0, 0] for strictly stright head position.

    Declaration

    Objective-C

    + (nonnull RFSImageQualityCharacteristic *)roll;

    Swift

    class func roll() -> ImageQualityCharacteristic
  • All Group characteristics with default (recommended) values. Doesn’t include characteristics without default values.

    Declaration

    Objective-C

    + (nonnull NSArray<RFSImageQualityCharacteristic *> *)allRecommended;

    Swift

    class func allRecommended() -> [ImageQualityCharacteristic]
  • 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