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