I am following this tutorial: https://aws.amazon.com/blogs/machine-learning/easily-perform-facial-analysis-on-live-feeds-by-creating-a-serverless-video-analytics-environment-with-amazon-rekognition-video-and-amazon-kinesis-video-streams/

However, when I run the command


        aws rekognition index-faces --image '{"S3Object":{"Bucket":" 
       <S3BUCKET>","Name":"<MYFACE_KEY>.jpeg"}}' --collection-id 
    "rekVideoBlog" -- 
       detection-attributes "ALL" --external-image-id "<YOURNAME>" --region 
    us- 
       west-2

I get the following error:


An error occurred (ValidationException) when calling the IndexFaces operation: 3 validation errors detected: Value '"Alex"' at 'externalImageId' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z0-9_.\-:]+; Value '"rekVideoBlog"' at 'collectionId' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z0-9_.\-]+; Value '["ALL"]' at 'detectionAttributes' failed to satisfy constraint: Member must satisfy constraint: [Member must satisfy enum value set: [ALL, DEFAULT]]


I have no idea what's wrong. I replaced the single quote with double quotes and double quotes with escaped double quotes (\") so it'd work but I got that error.

0 Answers