DOT Android Face Lite 6.0.0
This guide describes how to migrate DOT Android Face Lite version 5.x to version 6.0.0. Only the most important changes are highlighted in this guide. For more details, see the Android sample.
Migration Steps (Kotlin)
Data class FaceAutoCaptureConfiguration
- Replace
startQualityAttributeThresholds()
withqualityAttributeThresholds()
inFaceAutoCaptureConfiguration.Builder
.
Before
val configuration = FaceAutoCaptureConfiguration.Builder()
.startQualityAttributeThresholds()
.minConfidence(minConfidence)
.end()
.build()
After
val configuration = FaceAutoCaptureConfiguration.Builder()
.qualityAttributeThresholds(
QualityAttributeThresholds.Builder()
.minConfidence(minConfidence)
.build()
)
.build()
SizeTooSmallValidator and SizeTooLargeValidator thresholds
- Threshold of
SizeTooSmallValidator
andSizeTooLargeValidator
is using a new definition of face size. You get the new threshold by dividing the old threshold by 4.
Before
SizeTooSmallValidator.of(0.64)
SizeTooLargeValidator.of(0.80)
After
SizeTooSmallValidator.of(0.16)
SizeTooLargeValidator.of(0.20)
DetectionPosition.sizeToImageShorterSideRatio value
- This new value fits the definition of the face size. You get the new value by dividing the old value by 4.