FIRVisionFaceDetectorOptions


@interface FIRVisionFaceDetectorOptions : NSObject

Options for specifying a face detector.

  • Whether to run additional classifiers for characterizing attributes such as smiling. Defaults to VisionFaceDetectorClassificationNone.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        FIRVisionFaceDetectorClassification classificationType;
  • Preference for accuracy vs. speed trade-offs in face detection. Defaults to VisionFaceDetectorModeFast.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) FIRVisionFaceDetectorMode modeType;
  • Whether to detect no landmarks or all landmarks in face detection. Processing time increases as the number of landmarks to search for increases, so detecting all landmarks will increase the overall detection time. Defaults to VisionFaceDetectorLandmarkNone.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        FIRVisionFaceDetectorLandmark landmarkType;
  • The smallest desired face size. The size is expressed as a proportion of the width of the head to the image width. For example, if a value of 0.1 is specified, then the smallest face to search for is roughly 10% of the width of the image being searched. Defaults to VisionFaceDetectionMinSize.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGFloat minFaceSize;
  • Whether the face tracking feature is enabled in face detection. Defaults to NO.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL isTrackingEnabled;