From ddad227fb1920832e291b4e0c469e12b0e2dc56c Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Tue, 24 Feb 2026 00:43:50 +0000 Subject: [PATCH] a --- Contestation/verify_facial_api.php | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/Contestation/verify_facial_api.php b/Contestation/verify_facial_api.php index addea1c..1335ef6 100644 --- a/Contestation/verify_facial_api.php +++ b/Contestation/verify_facial_api.php @@ -61,6 +61,7 @@ class FacialVerificationAPI { * Utilisez Azure Face API, AWS Rekognition, ou une solution locale */ private function compareFaces($referenceImagePath, $capturedImageBase64) { + /* var_dump( array( "referenceImagePath" => $referenceImagePath, @@ -70,6 +71,7 @@ class FacialVerificationAPI { ) ); exit; + */ // Option 2: AWS Rekognition return $this->compareWithAWSRekognition($referenceImagePath, $capturedImageBase64); @@ -101,21 +103,9 @@ class FacialVerificationAPI { 'SimilarityThreshold' => 80 ]); -/* - $result = $client->compareFaces - ( - [ - 'SimilarityThreshold' => 80, - 'SourceImage' => [ - 'Bytes' => file_get_contents($sourceImage) - ], - 'TargetImage' => [ - //'Bytes' => file_get_contents($targetImage) - 'Bytes' => base64_decode($targetImage) - ], - ] - ); -*/ + var_dump($result); + exit; + if (empty($result['FaceMatches'])) { return [ 'match' => false,