Questions tagged with Amazon Rekognition

Content language: English

Sort by most recent

Browse through the questions and answers listed below or filter and sort to narrow down your results.

Rekognition: error when trying to detect faces with s3 object name containing a colon (:)

Actually Rekognition works fine but when I use a filename containing a colon (:) for the S3Object, it makes an error. It is very problematic for me because all my files already have colons and I can't change their names. So if use this It works fine: ``` { "Image":{ "S3Object":{ "Bucket":"console-sample-images", "Name":"skateboard.jpg" } ``` but if i use a name with a colon like this It gives me an error. ``` { "Image":{ "S3Object":{ "Bucket":"console-sample-images", "Name":"skate:board.jpg" } ``` Error output: `{"name":"Error","content":"{\"__type\":\"InvalidS3ObjectException\",\"Code\":\"InvalidS3ObjectException\",\"Message\":\"Unable to get object metadata from S3. Check object key, region and/or access permissions.\"}","message":"faultCode:Server.Error.Request faultString:'null' faultDetail:'null'","rootCause":{"errorID":2032,"target":{"bytesLoaded":174,"dataFormat":"text","bytesTotal":174,"data":"{\"__type\":\"InvalidS3ObjectException\",\"Code\":\"InvalidS3ObjectException\",\"Message\":\"Unable to get object metadata from S3. Check object key, region and/or access permissions.\"}"},"text":"Error #2032: Stream Error. URL: https://rekognition.eu-west-1.amazonaws.com","currentTarget":{"bytesLoaded":174,"dataFormat":"text","bytesTotal":174,"data":"{\"__type\":\"InvalidS3ObjectException\",\"Code\":\"InvalidS3ObjectException\",\"Message\":\"Unable to get object metadata from S3. Check object key, region and/or access permissions.\"}"},"type":"ioError","bubbles":false,"eventPhase":2,"cancelable":false},"errorID":0,"faultCode":"Server.Error.Request","faultDetail":null,"faultString":""}` Is there a workaround for this problem? (encoding the ':' a certain way?) Thank you for your help.
2
answers
0
votes
62
views
asked 7 months ago

Rekognition search faces API endpoint

Hi everyone! Currently, I've accomplished detecting all the faces from a collection and then generating sub-galleries of each subject with all their photos associated with the ruby SDK '~> 1.65' To do this, I've indexed the faces of all photos within a collection, list all the faces (https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Rekognition/Client.html#list_faces-instance_method), then grabbing each face_id recognized and search the faces related to that face_id (https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Rekognition/Client.html#search_faces-instance_method), and delete the face id used to do the API call and all the returned ones to tell when a new detected subject starts and ends. My issue is that the search faces API returns different results depending on which face id param you are doing the request with. For example, if there are 10 faces ids detected that belong to a person (1, 2, 3, ..., 10), the search faces call with face id = 1 param, should return the faces id (2, 3, 4, ..., 10) but if you continue to do this with the other face ids this is not always the case with some scenarios where the search faces call with face id = 3 has returned a subset of the previously mentioned like just (4, 5, 6). Is there any other way to achieve this to prevent this kind of "error"? if not, this is a real concern for us because it depends on the order in which we call the search faces with different face ids, and sometimes it seems like there is more than 1 subject detected with almost the same photos when in reality it's the same person. Thanks in advance!
3
answers
0
votes
33
views
asked 7 months ago

FaceId's when indexing multiple face images of same person

Hi there, I am not understanding how Rekognition deals with multiple images for the same face, I need help! Scenario: - I have 3 years worth of school classroom photos and need to create yearbook of 5 of the students - I need to identify which photos have only the 5 students in them, and ignore all others. To enhance the accuracy, I was reading the [documentation](https://docs.aws.amazon.com/rekognition/latest/dg/recommendations-facial-input-images.html) that recommends to use multiple images of the same face when using IndexFaces. > When creating a collection using IndexFaces, use multiple face images of an individual with different pitches and yaws (within the recommended range of angles). We recommend that at least five images of the person are indexed—straight on, face turned left with a yaw of 45 degrees or less, face turned right with a yaw of 45 degrees or less, face tilted down with a pitch of 30 degrees or less, and face tilted up with a pitch of 45 degrees or less I think I get this by default as I will be indexing all images, which will contain many many images of the students, from all angles. This is correct, no? Or do I need to do something specific to tie the photos of the same student to the one FaceId? I noted that if I use 5 images of the same person, using IndexFaces, I get 5 different FaceIds returned. I thought (perhaps incorrectly) that Rekognition would recognise that it's the same face and just update it's internal data about the FaceId, and return the same FaceId for each of the subsequent 4 images (after the first one is indexed) that are of the same face. So, can anyone help me: 1. Should indexing multiple images of the same person result in multiple FaceIds? 2. Internally, does Rekognition group all those FaceIds together, so it does not matter which FaceId I use in the future to search on - it will still benefit from the multiple images I uploaded for that face? 3. Is there any difference in performance if I search by `SearchFaces` or by `SearchFacesByImage` 4. Is my approach of indexing all the images I have, then searching on a single known FaceId a the student the way to go? sorry for multiple questions :) hope you can help, hive mind!
1
answers
1
votes
67
views
str3tch
asked 8 months ago