InvalidS3ObjectException when calling the IndexFaces operation

前端 未结 1 1780
终归单人心
终归单人心 2021-01-17 05:59

I am attempting the following tutorial

https://aws.amazon.com/blogs/machine-learning/easily-perform-facial-analysis-on-live-feeds-by-creating-a-serverless-video-ana

相关标签:
1条回答
  • 2021-01-17 06:27

    are you currently facing this error : "An error occurred (InvalidS3ObjectException) when calling the IndexFaces operation: Unable to get object metadata from S3. Check object key, region and/or access permissions"?

    I was able to run the sample Amazon Rekognition CLI command "index-faces" from the Amazon Rekogniton tutorial without any error as illustrated in the screenshot below :

    Here's some tips for consideration in-case anyone else runs into this issue :

    • Make sure both S3 & Rekognition are using the same region i.e S3 bucket should be created in the same region as where Rekognition collection was created.
    • Since Amazon Rekognition supports both .jpg and .png formats, make sure the file name & format referenced in the CLI “index-faces” command matches the actual file in your S3 bucket.

    Hope this helps.

    0 讨论(0)
提交回复
热议问题