package com.king.mlkit.vision.app.face
import com.google.mlkit.vision.face.Face
import com.google.mlkit.vision.face.FaceDetectorOptions
import com.king.camera.scan.analyze.Analyzer
import com.king.mlkit.vision.face.analyze.FaceDetectionAnalyzer
/**
* 多个人脸检测示例
* @author Jenly
*/
class MultipleFaceDetectionActivity : FaceDetectionActivity() {
override fun createAnalyzer(): Analyzer> {
return FaceDetectionAnalyzer(
FaceDetectorOptions.Builder()
.setPerformanceMode(FaceDetectorOptions.PERFORMANCE_MODE_ACCURATE)
.setLandmarkMode(FaceDetectorOptions.LANDMARK_MODE_ALL)
.setClassificationMode(FaceDetectorOptions.CLASSIFICATION_MODE_ALL)
.build()
)
}
}