MPPFaceDetectorOptions
@interface
MPPFaceDetectorOptions
:
MPPTaskOptions
<
NSCopying
>
Options for setting up a FaceDetector
.
-
Running mode of the face detector task. Defaults to
.image.FaceDetectorcan be created with one of the following running modes:-
.image: The mode for performing face detection on single image inputs. -
.video: The mode for performing face detection on the decoded frames of a video. -
.liveStream: The mode for performing face detection on a live stream of input data, such as from the camera.
Declaration
Objective-C
@property ( nonatomic ) MPPRunningMode runningMode ; -
-
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
Objective-C
@property ( nonatomic , weak , nullable ) id < MPPFaceDetectorLiveStreamDelegate > faceDetectorLiveStreamDelegate ; -
The minimum confidence score for the face detection to be considered successful. Defaults to 0.5.
Declaration
Objective-C
@property ( nonatomic ) float minDetectionConfidence ; -
The minimum non-maximum-suppression threshold for face detection to be considered overlapped. Defaults to 0.3.
Declaration
Objective-C
@property ( nonatomic ) float minSuppressionThreshold ;

