Skip to content

Conversation

@wooj2
Copy link
Contributor

@wooj2 wooj2 commented Apr 8, 2020

  • Removing bound box info. If this info is worthy, we should have it in an appendix so it applies to all sections.
  • I was unable to test the portion around "match entities from a pre-created "Amazon Recognition Collection" -- does anyone have an example I can use? The documentation that we link to isn't very helpful in this context.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

* Removing bound box info.  If this info is worthy, we should have it in an appendix so it applies to all sections.
* I was unable to test the portion around "match entities from a pre-created "Amazon Recognition Collection" -- does anyone have an example I can use?  The documentation that we link to isn't very helpful in this context.
## Working with the API
In order to match entities from a pre-created [Amazon Rekognition Collection](https://docs.aws.amazon.com/rekognition/latest/dg/collections.html), make sure there is a `collectionId` set in your `amplifyconfiguration.json` file. If there is no `collectionId` set in the `amplifyconfiguration.json` file, then this call will just detect entities in general with facial features, landmarks, etc. Bounding boxes for entities are returned as ratios so make sure if you would like to place the bounding box of your entity on an image that you multiple the x by the width of the image, the y by the width of the image, and both height and width ratios by the image's respective height and width.
In order to match entities from a pre-created [Amazon Rekognition Collection](https://docs.aws.amazon.com/rekognition/latest/dg/collections.html), make sure there is a `collectionId` set in your `amplifyconfiguration.json` file. If there is no `collectionId` set in the `amplifyconfiguration.json` file, then this call will just detect entities in general with facial features, landmarks, etc.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part was totally confusing --anyone have any example i can use, and then i can work on rewriting it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After about 1-2 hours of troubleshooting and reading through docs, I was unable to get this portion to work.

I went through instructions of creating a collection, adding a face to a collection, creating a s3 bucket, creating a user with the right permissions specifying the configuration in my amplifyconfiguration.json, but in all cases, I can not get this to work.

In all cases, the calls to identify resolved to a IdentifyEntitiesResult rather than the expected IdentifyEntityMatchesResult.

Couple options:

  1. Just change the example to only return "IdentifyEntitiesResult", and don't take users through the IdentifyEntityMatchesResult as this has a more involved setup.

  2. Have the original devs look into this and update documentation appropriately.

  3. Something else?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I vote #1 for now. We should create a bug in the backlog for the IdentifyEntityMatchesResult path and add documentation somewhere later in the document. That documentation should be far clearer about how to set this up (i.e., show me how to set a collectionId rather than telling me it should be set. Set where?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jpignata -- sorry for the delay, Sounds good, i'll update the document! To make sure this gets addressed, i created a ticket in pivotal tracker.

## Working with the API
In order to match entities from a pre-created [Amazon Rekognition Collection](https://docs.aws.amazon.com/rekognition/latest/dg/collections.html), make sure there is a `collectionId` set in your `amplifyconfiguration.json` file. If there is no `collectionId` set in the `amplifyconfiguration.json` file, then this call will just detect entities in general with facial features, landmarks, etc. Bounding boxes for entities are returned as ratios so make sure if you would like to place the bounding box of your entity on an image that you multiple the x by the width of the image, the y by the width of the image, and both height and width ratios by the image's respective height and width.
In order to match entities from a pre-created [Amazon Rekognition Collection](https://docs.aws.amazon.com/rekognition/latest/dg/collections.html), make sure there is a `collectionId` set in your `amplifyconfiguration.json` file. If there is no `collectionId` set in the `amplifyconfiguration.json` file, then this call will just detect entities in general with facial features, landmarks, etc.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I vote #1 for now. We should create a bug in the backlog for the IdentifyEntityMatchesResult path and add documentation somewhere later in the document. That documentation should be far clearer about how to set this up (i.e., show me how to set a collectionId rather than telling me it should be set. Set where?)

@wooj2 wooj2 requested a review from jpignata April 14, 2020 18:35
@renebrandel renebrandel merged commit cf8d56c into v2-preview Apr 14, 2020
@renebrandel renebrandel deleted the wooj2-patch-1 branch April 14, 2020 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants