What is a bounding box?

A bounding box is simply a rectangle drawn around an object to identify the exact location of the object in an image. In OD tasks, it also helps us identify what kind of object is present in an image.

How are coordinates represented?

Mathematically, a bounding box is represented as a tensor consisting of information related to the location of the object and confidence scores. In OD tasks, two formats are widely followed to represent location:

  • (xminx_{min}, yminy_{min}, xmaxx_{max}, ymaxy_{max}): They are also known as top-left and bottom-right coordinates.

  • (xcenterx_{center}, ycentery_{center}, ww, hh): They are the center coordinates of an image, along with the width and height of the image.

Get hands-on with 1200+ tech skills courses.