Drawing Bounding Boxes - Rekognition

Drawing Bounding Boxes

You can train a model to detect the location of objects on an image. To do this, the dataset needs information about the location of the object(s) in the image, and a corresponding label that identifies the type of the object(s). This is known as localization information. The location of the device is expressed as a bounding box, which is a box that tightly surrounds an object. The following image shows a bounding box surrounding an Amazon Echo Dot. The image also contains an Amazon Echo without a bounding box.

The accuracy of your model is affected by the accuracy of the bounding boxes. Try to draw them as closes as possible to the object.

Amazon Rekognition Custom Labels can detect logos and animated characters. The testing images must contain bounding boxes around the logo or animated character.

Before you can add bounding boxes, you must add at least one label to the dataset. For more information, see Editing Labels.

To draw a bounding box and assign a label (console)

  1. Open the Amazon Rekognition console at https://console.aws.amazon.com/rekognition/.

  2. Choose Use Custom Labels.

  3. Choose Get started.

  4. In the left navigation pane, choose the project that contains the dataset that you want to use.

  5. In the Datasets section, choose the dataset that you want to use.

  6. In the dataset gallery page, choose Start labeling to enter labeling mode.

  7. Choose the images that you want to add bounding boxes to.

  8. Choose Draw bounding box. A series of tips are shown before the bounding box editor is displayed.

  9. In the Labels pane on the right, select the label that you want to assign to a bounding box.

  10. In the drawing tool, place the pointer at the top-left area of the desired object.

  11. Press the left mouse button and draw a box around the object. Try to draw the bounding box as close as possible to the object.

  12. Release the mouse button and the bounding box is highlighted.

  13. Click Next if you have more images to label. Otherwise, choose Done to finish labeling.

  14. Repeat steps 7–11 until you have created a bounding box in each image that contains objects.

  15. Choose Save changes to save your changes.

  16. Choose Exit to exit labeling mode.