RFSDetectFacesResponse

Objective-C

@interface RFSDetectFacesResponse: NSObject

/// Single Face Detection result.
/// Preferred to use when Scenario supports only central face detection.
@property(nullable, nonatomic, readonly) RFSDetectFaceResult *detection;

/// All Face Detections Results.
/// Preferred to use when Scenario supports multiple faces detection.
@property(nullable, nonatomic, readonly, copy) NSArray<RFSDetectFaceResult *> *allDetections;

/// Current Image Quality Assessment Scenario
/// `nil` for Request with custom configuration.
@property(nullable, nonatomic, readonly, copy) NSString *scenario;

/// The error describes a failed detect faces request and contains `RFSDetectFacesErrorCode` codes.
/// This error belongs to the `RFSDetectFacesErrorDomain`.
@property(nullable, nonatomic, readonly, strong) NSError *error;

RFS_EMPTY_INIT_UNAVAILABLE

@end

Swift

class DetectFacesResponse : NSObject

Undocumented

  • Single Face Detection result. Preferred to use when Scenario supports only central face detection.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) RFSDetectFaceResult *detection;

    Swift

    var detection: RFSDetectFaceResult? { get }
  • All Face Detections Results. Preferred to use when Scenario supports multiple faces detection.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSArray<RFSDetectFaceResult *> *allDetections;

    Swift

    var allDetections: [RFSDetectFaceResult]? { get }
  • Current Image Quality Assessment Scenario nil for Request with custom configuration.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *scenario;

    Swift

    var scenario: String? { get }
  • The error describes a failed detect faces request and contains RFSDetectFacesErrorCode codes. This error belongs to the RFSDetectFacesErrorDomain.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) NSError *error;

    Swift

    var error: Error? { 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