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