a
This commit is contained in:
parent
d07682af9b
commit
6f5f37f36f
|
|
@ -58,6 +58,14 @@ class FacialVerificationAPI {
|
|||
* Utilisez Azure Face API, AWS Rekognition, ou une solution locale
|
||||
*/
|
||||
private function compareFaces($referenceImagePath, $capturedImageBase64) {
|
||||
var_dump(
|
||||
array(
|
||||
"referenceImagePath" => $referenceImagePath,
|
||||
"capturedImageBase64" => $capturedImageBase64,
|
||||
)
|
||||
);
|
||||
exit;
|
||||
|
||||
// Option 1: Azure Face API (Recommandé)
|
||||
return $this->compareWithAzureFaceAPI($referenceImagePath, $capturedImageBase64);
|
||||
|
||||
|
|
@ -314,9 +322,6 @@ class FacialVerificationAPI {
|
|||
// 3. Enregistrer la photo capturée
|
||||
$capturedPhotoPath = $this->saveCapturedImage($request['idBeneficiaire'], $capturedImageBase64);
|
||||
|
||||
var_dump($capturedPhotoPath);
|
||||
exit;
|
||||
|
||||
// 4. Comparer les visages
|
||||
$comparisonResult = $this->compareFaces(
|
||||
$request['photo_reference_path'],
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user