我在尝试执行aws rekognition searchFacesByImage命令时遇到以下错误。
Fatal error: Uncaught exception 'Aws\Rekognition\Exception\RekognitionException' with message 'Error executing "SearchFacesByImage" on "https://rekognition.us-east-1.amazonaws.com"; AWS HTTP error: Client error: `POST https://rekognition.us-east-1.amazonaws.com` resulted in a `400 Bad Request` response: {"__type":"SerializationException","Message":"class java.lang.String can not be converted to an Float"} SerializationException (client): class java.lang.String can not be converted to an Float - {"__type":"SerializationException","Message":"class java.lang.String can not be converted to an Float"}' GuzzleHttp\Exception\ClientException: Client error: `POST https://rekognition.us-east-1.amazonaws.com` resulted in a `400 Bad Request` response: {"__type":"SerializationException","Message":"class java.lang.String can not be converted to an Float"} in /home/admin/web/mbracecloud.com/public_html/Aws/GuzzleHttp/Exception/RequestException.php:113 Stack trace: #0 /home/admin/web/mbracecloud.com/public_html/Aws/GuzzleHttp/Middlewa in /home/admin/web/mbracecloud.com/public_html/Aws/Aws/WrappedHttpHandler.php on line 195
这是我用来执行命令的代码
$v=file_get_contents('https://mbracecloud.com/appln_enterprise/images/ahamed.jpg');
$result = $s3->searchFacesByImage([
'CollectionId' => 'xxxx',
'FaceMatchThreshold' => '90',
'Image' => [
'Bytes' => $v,
],
'MaxFaces' => 1,
'QualityFilter' => 'NONE',
]);
我完全按照文档中的说明进行操作,不明白我要去哪里。任何想法