Rekognition API: IndexFaces vs. DetectFaces

0

Hello,

The 2 API from Rekognition share a same structure at some level of depth in the Response: FaceDetail (the object that contains lots of info about a face: ageRange, boundingBox, sunglasses, mouthOpen, emotions, gender, beard, pose, confidence, landmarks, mustache, smile, quality, eyesOpen, eyeDirection, eyeglasses, faceOccluded).

Could a developer consider that the 2 API have identical structure and values, for same: picture and face in the picture ?

Thank you,
Mihai ADAM

asked 2 months ago126 views
2 Answers
1
Accepted Answer

Hi, rePost-User-4717319 / Mihai ADAM

The DetectionAttributes (IndexFaces) and Attributes (DetectFaces) arrays do contain the same value types.

Here are the different API calls for IndexFaces and DetectFaces - the names on the left menu are the specific API calls (request/response) you can use for each.

If this answers your question, please choose this as the Accepted Answer so re:Post users may benefit - Thank you

profile pictureAWS
answered 2 months ago
profile picture
EXPERT
reviewed a month ago
profile pictureAWS
EXPERT
reviewed 2 months ago
  • Thank you for your answer,

    Beside the structures, are also identical the values generated by the 2 API, and more extensive, by other Rekognition API that generates same structure ?

    For example I could not match exactly the bounding box for same face, in same picture, found by CompareFaces API: BoundingBox: {Width: 0.3974676,Height: 0.45382437,Left: 0.6063172,Top: 0.33203027} with the bounding box for same face, in same picture, found by IndexFaces: "boundingBox": { "M": { "width": { "N": "0.3974676" }, "top": { "N": "0.3320302" }, "left": { "N": "0.6063172" }, "height": { "N": "0.45382443" } } } Thank you, Mihai

  • Hello,
    For this example with the bounding box, how many decimal should I use so that the 2 bounding box to match for all pictures ?

0

Hi, rePost-User-4717319 / Mihai ADAM

Regarding your follow up questions, the BoundingBox values provided by CompareFaces has Face, SourceImageFace & UnmatchedFaces for BoundingBox info here -> https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CompareFaces.html#API_CompareFaces_ResponseSyntax

IndexFaces has Face, FaceDetail & UnindexedFaces for BoundingBox info here -> https://docs.aws.amazon.com/rekognition/latest/APIReference/API_IndexFaces.html#API_IndexFaces_ResponseSyntax

DetectFaces has FaceDetails for BoundingBox info here -> https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectFaces.html#API_DetectFaces_ResponseSyntax

As a side note, I was curious if you've tried using ListFaces yet. All AWS APIs typically have a Describe/List/Get read API (or combination of those), for reading values also. It looks like ListFaces responds with BoundingBox information as well.

If you continue to see a mismatch in the BoundingBox response output between APIs, I'd recommend opening a support case in the AWS account you're running the API commands in/against. Here are the instructions on how to open a support case:

To open an AWS Support case, you must either be signed into your AWS account as the root account owner, or have IAM permissions to open a support case.

  • Sign into your AWS account and navigate to AWS Support Center (you can search for this in the search bar, at the top of the Account console).
  • Choose Create case.
  • On the Create case page, choose Rekognition and fill in the required fields on the form.
  • After you complete the form, under Contact options, choose either Web for an email response, or for Business/Enterprise support customers, Phone to request a telephone call from an AWS Support representative or Web, for instant chat.

I hope this is helpful.

If this helps answer your question, please choose this as the Accepted Answer so others on re:Post may benefit - Thank you

Best Regards,

AWS-Eric

profile pictureAWS
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions