FaceConfig class Null safety

人脸识别配置

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, int cacheImageNum = 3, double scale = 1, int cropHeight = 640, int cropWidth = 480, double enlargeRatio = 1.5, double faceFarRatio = 0.4, double faceClosedRatio = 1, int secType = 0, bool sund = true, bool livenessRandom = true, Set<LivenessType>? livenessTypes})

Properties

blurness double
图像模糊阈值 宽松:0.8、正常:0.6、严格:0.4 0~1.0
read / write
brightness double
图片最小光照阈值 宽松:30、正常:40、严格:60 0-255
read / write
brightnessMax double
图片最大光照阈值 宽松:240、正常:220、严格:200 0-255
read / write
cacheImageNum int
图片缓存数量 3 建议3~6
read / write
cropHeight int
抠图宽高的设定,为了保证好的抠图效果,建议高宽比是4:3
read / write
cropWidth int
抠图宽高的设定,为了保证好的抠图效果,建议高宽比是4:3
read / write
enlargeRatio double
抠图人脸框与背景比例
read / write
eyeClosed double
闭眼阈值 0.7 0~1.0
read / write
faceClosedRatio double
检测框远近比率
read / write
faceFarRatio double
检测框远近比率
read / write
hashCode int
The hash code for this object.
read-onlyinherited
headPitch int
低头抬头角度 宽松:30、正常:20、严格:15 0~45
read / write
headRoll int
偏头角度 宽松:30、正常:20、严格:15 0~45
read / write
headYaw int
左右摇头角度 宽松:18、正常:18、严格:15 0~45
read / write
livenessRandom bool
动作活体随机
read / write
livenessTypes Set<LivenessType>
活体动作
read / write
minFaceSize int
最小人脸阈值
read / write
notFace double
非人脸阈值 0.6 0~1.0
read / write
occlusionChin double
下巴遮挡阀值 宽松:0.95、正常:0.8、严格:0.4 0~1.0
read / write
occlusionLeftContour double
左脸颊遮挡阀值 宽松:0.95、正常:0.8、严格:0.4 0~1.0
read / write
occlusionLeftEye double
左眼遮挡阀值 宽松:0.95、正常:0.8、严格:0.4 0~1.0
read / write
occlusionMouth double
嘴巴遮挡阀值 宽松:0.95、正常:0.8、严格:0.4 0~1.0
read / write
occlusionNose double
鼻子遮挡阀值 宽松:0.95、正常:0.8、严格:0.4 0~1.0
read / write
occlusionRightContour double
右脸颊遮挡阀值 宽松:0.95、正常:0.8、严格:0.4 0~1.0
read / write
occlusionRightEye double
右眼遮挡阀值 宽松:0.95、正常:0.8、严格:0.4 0~1.0
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
scale double
原图缩放系数 0.1~1.0
read / write
secType int
加密类型,0:Base64加密,上传时image_sec传false;1:百度加密文件加密,上传时image_sec传true
read / write
sund bool
开启提示音
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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