From f845ced55a201e8c34f2d0326025d1d5f14b6fb4 Mon Sep 17 00:00:00 2001 From: israelalagbe Date: Tue, 4 Jun 2019 12:04:21 +0100 Subject: [PATCH] reduced the min confidence level for face recognition --- app/src/main/java/wavetech/facelocker/utils/FaceRegister.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/wavetech/facelocker/utils/FaceRegister.java b/app/src/main/java/wavetech/facelocker/utils/FaceRegister.java index ba62860..44fb33a 100644 --- a/app/src/main/java/wavetech/facelocker/utils/FaceRegister.java +++ b/app/src/main/java/wavetech/facelocker/utils/FaceRegister.java @@ -94,7 +94,7 @@ public boolean predict(Context context,opencv_core.Mat mat) throws IOException{ image.release(); resizeimage.release(); - if(passwordStore.hasFaceLabel(predictedLabel) && confidence.get(0)<84) + if(passwordStore.hasFaceLabel(predictedLabel) && confidence.get(0)<80) return true; return false; }