class FaceDetector : NSObject
A face detector that detects faces in an image.
Returns a face detector with the given options.
class func faceDetector(options: MLKFaceDetectorOptions) -> Self
Options for configuring the face detector.
A face detector configured with the given options.
Returns a face detector with default options.
class func faceDetector() -> Self
A face detector configured with default options.
Unavailable. Use the class methods.
Returns face results in the given image or
nilif there was an error. The face detection is performed synchronously on the calling thread.
It is advised to call this method off the main thread to avoid blocking the UI. As a result, an
NSExceptionis raised if this method is called on the main thread.
func results(in image: MLKitCompatibleImage) throws -> [MLKFace]
The image to get results in.
An optional error parameter populated when there is an error getting results.
Array of face results in the given image or
nilif there was an error.