a
This commit is contained in:
parent
ddad227fb1
commit
b01ef7f77c
|
|
@ -94,7 +94,8 @@ class FacialVerificationAPI {
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
||||||
$referenceImageData = file_get_contents($referenceImagePath);
|
// $referenceImageData = file_get_contents($referenceImagePath);
|
||||||
|
$referenceImageData = $referenceImagePath;
|
||||||
$capturedImageData = base64_decode(explode(',', $capturedImageBase64)[1]);
|
$capturedImageData = base64_decode(explode(',', $capturedImageBase64)[1]);
|
||||||
|
|
||||||
$result = $rekognitionClient->compareFaces([
|
$result = $rekognitionClient->compareFaces([
|
||||||
|
|
@ -105,7 +106,7 @@ class FacialVerificationAPI {
|
||||||
|
|
||||||
var_dump($result);
|
var_dump($result);
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
if (empty($result['FaceMatches'])) {
|
if (empty($result['FaceMatches'])) {
|
||||||
return [
|
return [
|
||||||
'match' => false,
|
'match' => false,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user