a
This commit is contained in:
parent
9c11286ffc
commit
738ff4e3e3
|
|
@ -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);
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user