RFSQualityBackground

Objective-C

@interface RFSQualityBackground: NSObject

/// Checks uniformity of the portrait background.
/// The range is from 0 to 1 where 1 is absolute background uniformity.
+ (RFSImageQualityCharacteristic *)backgroundUniformity;

/// Whether there are shadows on the portrait background.
/// The range is from 0 to 1 where 1 is the absence of shadows on the portrait background.
+ (RFSImageQualityCharacteristic *)shadowsOnBackground;

/// The number of faces on the photo.
/// The range starts from 1.
+ (RFSImageQualityCharacteristic *)otherFaces;

/// Whether the background color matches default background color.
/// Default color is white (RGB(255,255,255) or hex #FFFFFF)
/// The range is from 0 to 1 where 1 is full background color match.
+ (RFSImageQualityColorCharacteristic *)backgroundColorMatch;

/// Whether the background color matches the required color.
/// The range is from 0 to 1 where 1 is full background color match.
+ (RFSImageQualityColorCharacteristic *)backgroundColorMatchWithColor:(UIColor*)color;

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

RFS_EMPTY_INIT_UNAVAILABLE

@end

Swift

class Background : NSObject

Undocumented

  • Checks uniformity of the portrait background. The range is from 0 to 1 where 1 is absolute background uniformity.

    Declaration

    Objective-C

    + (nonnull RFSImageQualityCharacteristic *)backgroundUniformity;

    Swift

    class func backgroundUniformity() -> ImageQualityCharacteristic
  • Whether there are shadows on the portrait background. The range is from 0 to 1 where 1 is the absence of shadows on the portrait background.

    Declaration

    Objective-C

    + (nonnull RFSImageQualityCharacteristic *)shadowsOnBackground;

    Swift

    class func shadowsOnBackground() -> ImageQualityCharacteristic
  • The number of faces on the photo. The range starts from 1.

    Declaration

    Objective-C

    + (nonnull RFSImageQualityCharacteristic *)otherFaces;

    Swift

    class func otherFaces() -> ImageQualityCharacteristic
  • Whether the background color matches default background color. Default color is white (RGB(255,255,255) or hex #FFFFFF) The range is from 0 to 1 where 1 is full background color match.

    Declaration

    Objective-C

    + (nonnull RFSImageQualityColorCharacteristic *)backgroundColorMatch;

    Swift

    class func backgroundColorMatch() -> RFSImageQualityColorCharacteristic
  • Whether the background color matches the required color. The range is from 0 to 1 where 1 is full background color match.

    Declaration

    Objective-C

    + (nonnull RFSImageQualityColorCharacteristic *)backgroundColorMatchWithColor:
        (nonnull UIColor *)color;

    Swift

    class func backgroundColorMatch(with color: UIColor) -> RFSImageQualityColorCharacteristic
  • 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