From 4eea6d4ff363e35519bba4ca6cf034238191b478 Mon Sep 17 00:00:00 2001 From: Sergejs Luhmirins Date: Thu, 12 Sep 2024 10:15:38 +0300 Subject: [PATCH] MS-718 Use accurate face detection method from ROC v3 --- .../com/simprints/face/infra/rocv3/detection/RocV3Detector.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/face/infra/roc-v3/src/main/java/com/simprints/face/infra/rocv3/detection/RocV3Detector.kt b/face/infra/roc-v3/src/main/java/com/simprints/face/infra/rocv3/detection/RocV3Detector.kt index c9a17dac19..e11bccb96b 100644 --- a/face/infra/roc-v3/src/main/java/com/simprints/face/infra/rocv3/detection/RocV3Detector.kt +++ b/face/infra/roc-v3/src/main/java/com/simprints/face/infra/rocv3/detection/RocV3Detector.kt @@ -50,7 +50,7 @@ class RocV3Detector @Inject constructor() : FaceDetector { val template = roc3.new_uint8_t_array(roc3.ROC_FACE_FAST_FV_SIZE.toInt()) val yaw = roc3.new_float() val quality = roc3.new_float() - val face = if (isFaceDetected(grayImage, detection)) { + val face = if (isFaceDetected(coloredImage, detection)) { generateFaceTemplateFromImage( coloredImage, grayImage, detection, yaw, template, quality ) @@ -127,7 +127,7 @@ class RocV3Detector @Inject constructor() : FaceDetector { ) val n = roc3.new_size_t() - roc3.roc_embedded_detect_faces( + roc3.roc_embedded_detect_faces_accurate( image, roc3.size_t_value(adaptiveMinimumSize), MAX_FACE_DETECTION,