This commit is contained in:
KANE LAZENI 2026-02-24 19:40:19 +00:00
parent 9c11286ffc
commit 738ff4e3e3

View File

@ -131,6 +131,7 @@ class FacialVerificationAPI {
/** /**
* Enregistre la photo capturée * Enregistre la photo capturée
*/ */
/*
private function saveCapturedImage($assureId, $imageBase64) { private function saveCapturedImage($assureId, $imageBase64) {
$uploadDir = 'uploads/facial_verification/'; $uploadDir = 'uploads/facial_verification/';
@ -145,7 +146,7 @@ class FacialVerificationAPI {
return $filename; return $filename;
} }
*/
/** /**
* Vérifie le visage capturé * Vérifie le visage capturé
*/ */
@ -175,7 +176,7 @@ class FacialVerificationAPI {
} }
// 3. Enregistrer la photo capturée // 3. Enregistrer la photo capturée
$capturedPhotoPath = $this->saveCapturedImage($request['idBeneficiaire'], $capturedImageBase64); // $capturedPhotoPath = $this->saveCapturedImage($request['idBeneficiaire'], $capturedImageBase64);
// 4. Comparer les visages // 4. Comparer les visages
$comparisonResult = $this->compareFaces( $comparisonResult = $this->compareFaces(
@ -248,9 +249,11 @@ class FacialVerificationAPI {
} }
// On supprime le fichier de capture caméra // On supprime le fichier de capture caméra
/*
if($capturedPhotoPath){ if($capturedPhotoPath){
@unlink($capturedPhotoPath); @unlink($capturedPhotoPath);
} }
*/
} }
} }