AccuracyConfig class
Configuration values that tune face-detection quality checks.
Constructors
- AccuracyConfig({double detectionThreshold = 0.6, double intersectionRatioThreshold = 0.9, double extraHeightFactor = 0.3, int inputSize = 224, double landmarkRatio = 0.95, double frameMargin = 0.05, double tiltAngleThreshold = 6, double horizontalCenterTolerance = 0.08, double earThreshold = 0.25, double minFaceWidthRatio = 0.18, double maxFaceWidthRatio = 0.82, double qualityPassThreshold = 0.8, double yawLowerThreshold = 0.85, double yawUpperThreshold = 1.15})
-
Creates accuracy settings for face detection.
const
-
AccuracyConfig.fromMap(Map<
String, dynamic> map) -
Creates accuracy settings from a map payload.
factory
Properties
- detectionThreshold → double
-
Minimum detection confidence required for a face.
final
- earThreshold → double
-
Eye aspect ratio threshold used for quality checks.
final
- extraHeightFactor → double
-
Extra vertical frame allowance around the detected face.
final
- frameMargin → double
-
Allowed margin around the frame.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- horizontalCenterTolerance → double
-
Allowed horizontal offset from the frame center.
final
- inputSize → int
-
Input image size used by the detector.
final
- intersectionRatioThreshold → double
-
Required overlap ratio between the face and target frame.
final
- landmarkRatio → double
-
Required facial-landmark confidence ratio.
final
- maxFaceWidthRatio → double
-
Maximum face width relative to the frame.
final
- minFaceWidthRatio → double
-
Minimum face width relative to the frame.
final
- qualityPassThreshold → double
-
Overall quality score required to pass.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tiltAngleThreshold → double
-
Maximum allowed head tilt angle.
final
- yawLowerThreshold → double
-
Lower yaw ratio threshold.
final
- yawUpperThreshold → double
-
Upper yaw ratio threshold.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts this configuration to a JavaScript-friendly map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited