LCFaceDetectorProtocol

Objective-C

@protocol LCFaceDetectorProtocol <NSObject>

/// Detects faces in the image
/// @param image Source image.
/// @param maxCount Maximum number of faces to be detected.
- (NSArray<LCFaceDetection *> *)detectFaces: (UIImage *)image maxCount: (NSUInteger) maxCount;

@end

Swift

protocol LCFaceDetectorProtocol : NSObjectProtocol

Undocumented

  • Detects faces in the image

    Declaration

    Objective-C

    - (nonnull NSArray<LCFaceDetection *> *)detectFaces:(nonnull UIImage *)image
                                               maxCount:(NSUInteger)maxCount;

    Swift

    func detectFaces(_ image: UIImage, maxCount: UInt) -> [LCFaceDetection]

    Parameters

    image

    Source image.

    maxCount

    Maximum number of faces to be detected.