From f91eb8d35640c641b6e043e7b9ca54d2990bd23f Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Tue, 24 Feb 2026 02:38:20 +0000 Subject: [PATCH] a --- Contestation/verify_facial_api.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Contestation/verify_facial_api.php b/Contestation/verify_facial_api.php index e253160..d3eeb8e 100644 --- a/Contestation/verify_facial_api.php +++ b/Contestation/verify_facial_api.php @@ -109,13 +109,21 @@ class FacialVerificationAPI { ); exit; */ - + + /* $result = $rekognitionClient->compareFaces([ 'SourceImage' => ['Bytes' => $capturedImageData], 'TargetImage' => ['Bytes' => $referenceImageData], 'SimilarityThreshold' => 80 ]); + */ + $result = $rekognitionClient->compareFaces([ + 'SourceImage' => ['Bytes' => base64_decode($capturedImageData)], + 'TargetImage' => ['Bytes' => base64_decode($referenceImageData)], + 'SimilarityThreshold' => 80 + ]); + // var_dump($result); // exit;