FaceDetectorOptions
class FaceDetectorOptions: TaskOptions, NSCopyingOptions for setting up a FaceDetector.
-
An object that confirms to
FaceDetectorLiveStreamDelegateprotocol. This object must implementfaceDetector(_:didFinishDetectionWithResult:timestampInMilliseconds:error:)to receive the results of performing asynchronous face detection on images (i.e, whenrunningMode=.liveStream).Declaration
Swift
weak var faceDetectorLiveStreamDelegate: (any FaceDetectorLiveStreamDelegate)? { get set } -
The minimum confidence score for the face detection to be considered successful. Defaults to 0.5.
Declaration
Swift
var minDetectionConfidence: CFloat { get set } -
The minimum non-maximum-suppression threshold for face detection to be considered overlapped. Defaults to 0.3.
Declaration
Swift
var minSuppressionThreshold: CFloat { get set } -
Running mode of the face detector task. Defaults to
.image.FaceDetectorcan be created with one of the following running modes: 1..image: The mode for performing face detection on single image inputs. 2..video: The mode for performing face detection on the decoded frames of a video. 3..liveStream: The mode for performing face detection on a live stream of input data, such as from the camera.Declaration
Swift
var runningMode: RunningMode { get set }