FaceDetectorOptions constructor

FaceDetectorOptions({
  1. bool enableClassification = false,
  2. bool enableLandmarks = false,
  3. bool enableContours = false,
  4. bool enableTracking = false,
  5. double minFaceSize = 0.1,
  6. FaceDetectorMode performanceMode = FaceDetectorMode.fast,
})

Constructor for FaceDetectorOptions.

The parameter minFaceSize must be between 0.0 and 1.0, inclusive.

Implementation

FaceDetectorOptions({
  this.enableClassification = false,
  this.enableLandmarks = false,
  this.enableContours = false,
  this.enableTracking = false,
  this.minFaceSize = 0.1,
  this.performanceMode = FaceDetectorMode.fast,
})  : assert(minFaceSize >= 0.0),
      assert(minFaceSize <= 1.0);