A bounding box is a rectangular region used to identify and localize an object or area of interest in an image or video frame. It is usually represented by coordinate values and is widely used in computer vision tasks such as object detection, annotation, tracking, and evaluation.
In an image, the (x , y) coordinates of a rectangle around an area of interest, such as the dog in the image below. !Photograph of a dog sitting on a sofa. A green bounding box with top-left coordinates of (275, 1271) and bottom-right coordinates of (2954, 2761) circumscribes the dog's body
A bounding box for an object in the video frame can be specified in either of two ways (i) Using 2 vertices consisting of a set of x,y coordinates if they are diagonally opposite points of the rectangle. For example: x_relative_min, y_relative_min,,,x_relative_max,y_relative_max,, (ii) Use all 4 vertices. For more information, see Prepare video data.