FaceConfig class
人脸识别配置
Constructors
-
FaceConfig({int minFaceSize = 200, double notFace = 0.6, double brightness = 40, double brightnessMax = 220, double blurness = 0.6, double occlusionLeftEye = 0.8, double occlusionRightEye = 0.8, double occlusionNose = 0.8, double occlusionMouth = 0.8, double occlusionLeftContour = 0.8, double occlusionRightContour = 0.8, double occlusionChin = 0.8, int headPitch = 20, int headYaw = 18, int headRoll = 20, double eyeClosed = 0.7, double scale = 1, int cropHeight = 640, int cropWidth = 480, double enlargeRatio = 1.5, double faceFarRatio = 0.4, double faceClosedRatio = 1, int secType = 0, bool sound = true, bool livenessRandom = true, Set<
LivenessType> ? livenessTypes})
Properties
- blurness ↔ double
-
图像模糊阈值 宽松:0.8、正常:0.6、严格:0.4 0~1.0
getter/setter pair
- brightness ↔ double
-
图片最小光照阈值 宽松:30、正常:40、严格:60 0-255
getter/setter pair
- brightnessMax ↔ double
-
图片最大光照阈值 宽松:240、正常:220、严格:200 0-255
getter/setter pair
- cropHeight ↔ int
-
抠图宽高的设定,为了保证好的抠图效果,建议高宽比是4:3
getter/setter pair
- cropWidth ↔ int
-
抠图宽高的设定,为了保证好的抠图效果,建议高宽比是4:3
getter/setter pair
- enlargeRatio ↔ double
-
抠图人脸框与背景比例
getter/setter pair
- eyeClosed ↔ double
-
闭眼阈值 0.7 0~1.0
getter/setter pair
- faceClosedRatio ↔ double
-
检测框远近比率
getter/setter pair
- faceFarRatio ↔ double
-
检测框远近比率
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- headPitch ↔ int
-
低头抬头角度 宽松:30、正常:20、严格:15 0~45
getter/setter pair
- headRoll ↔ int
-
偏头角度 宽松:30、正常:20、严格:15 0~45
getter/setter pair
- headYaw ↔ int
-
左右摇头角度 宽松:18、正常:18、严格:15 0~45
getter/setter pair
- livenessRandom ↔ bool
-
动作活体随机
getter/setter pair
-
livenessTypes
↔ Set<
LivenessType> -
活体动作
getter/setter pair
- minFaceSize ↔ int
-
最小人脸阈值
getter/setter pair
- notFace ↔ double
-
非人脸阈值 0.6 0~1.0
getter/setter pair
- occlusionChin ↔ double
-
下巴遮挡阀值 宽松:0.95、正常:0.8、严格:0.4 0~1.0
getter/setter pair
- occlusionLeftContour ↔ double
-
左脸颊遮挡阀值 宽松:0.95、正常:0.8、严格:0.4 0~1.0
getter/setter pair
- occlusionLeftEye ↔ double
-
左眼遮挡阀值 宽松:0.95、正常:0.8、严格:0.4 0~1.0
getter/setter pair
- occlusionMouth ↔ double
-
嘴巴遮挡阀值 宽松:0.95、正常:0.8、严格:0.4 0~1.0
getter/setter pair
- occlusionNose ↔ double
-
鼻子遮挡阀值 宽松:0.95、正常:0.8、严格:0.4 0~1.0
getter/setter pair
- occlusionRightContour ↔ double
-
右脸颊遮挡阀值 宽松:0.95、正常:0.8、严格:0.4 0~1.0
getter/setter pair
- occlusionRightEye ↔ double
-
右眼遮挡阀值 宽松:0.95、正常:0.8、严格:0.4 0~1.0
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale ↔ double
-
图片缓存数量 3 建议3~6
原图缩放系数 0.1~1.0
getter/setter pair
- secType ↔ int
-
加密类型,0:Base64加密,上传时image_sec传false;1:百度加密文件加密,上传时image_sec传true
getter/setter pair
- sound ↔ bool
-
开启提示音
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited