2 Respuestas
- Más nuevo
- Más votos
- Más comentarios
0
Can you update your question with the exact error/stack-trace?
Editing answer to reflect latest update -
aws rekognition detect-faces \
--region us-east-1 \
--image '{"S3Object":{"Bucket":"test-images","Name":"drive:resized.jpg"}}'
works as expected
{
"FaceDetails": [
{
"BoundingBox": {
"Width": 0.20745284855365753,
"Height": 0.4039246439933777,
"Left": 0.15659691393375397,
"Top": 0.13662810623645782
}...
Can you double check S3 permissions while calling the API? Do the credentials that are being used to call the RekognitionAPI have get/read access to the S3 bucket?
General advice -
The object naming conventions are defined by S3 - https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html
The above link suggests that url encoding special characters might help. Can you try replacing ":" in your request with "%3A"?
respondido hace 2 años
0
Thank you for your help. Indeed the problem doesn't come frome Rekognition. I don't know why but the code I used added a space after the colon. I guess it was for the json readability. Best
respondido hace 2 años
Contenido relevante
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 8 meses
Thank you for your suggestion. I tried it but I still have an error.
There maybe something wrong with your permissions/CLI command -
This is giving me the expected output
Can you double check permissions and post the exact command you are running?