MediaPipeTasksVision Framework Reference

MPPFaceDetectorOptions

  @interface 
 MPPFaceDetectorOptions 
 : 
  MPPTaskOptions 
 
 < 
 NSCopying 
 > 
 

Options for setting up a FaceDetector .

  • Running mode of the face detector task. Defaults to .image . FaceDetector can 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

    Objective-C

      @property 
     ( 
     nonatomic 
     ) 
      MPPRunningMode 
     
     runningMode 
     ; 
     
    
  • An object that confirms to FaceDetectorLiveStreamDelegate protocol. This object must implement faceDetector(_:didFinishDetectionWithResult:timestampInMilliseconds:error:) to receive the results of performing asynchronous face detection on images (i.e, when runningMode = .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 
     ; 
     
    
Design a Mobile Site
View Site in Mobile | Classic
Share by: