Oriented Bounding box

Annotation is an essential component of the Artificial Intelligence (AI) training process for computer vision systems. An AI system or computer vision model for object detection can be trained by labeling the images in a datasetโ€”this is known as image annotation. One of the most widely used strategies in image annotation is the bounding box technique. This article gives a quick explanation of the Oriented bounding box approach and how it works.

A bounding box is a rectangle used to identify an object in an image. The term "Oriented Bounding Box" also refers to a regular rectangular bounding box that has been rotated to fit object orientation. It helps in figuring out the object's orientation angle when it is rotated or diagonal. The parameters for a rotating rectangle are Xc, Yc, width, height, and orientation angle.

The following are some of the defining attributes of Oriented Bounding Box (OBB):

  • Better localization - Allows for the accurate detection of the target object's true size and shape.
  • Background isolation - The ability to successfully separate a rotated object from its background.
  • Avoid Overlapping - Effectively designate dense objects to avoid overlapping


Oriented Bounding box approach is used in numerous fields. Object recognition in aerial and satellite images is a typical application. A tremendous number of photos are produced by the hundreds of remote sensing satellites that are launched into space. These images' object recognition and localization play a crucial role in the detection of air and ship fleets. Labeling these photographs are difficult because the objects are randomly arranged and come in a variety of sizes and scales. The major issues with aerial images are

  • Small objects - tiny objects are frequently overshadowed by complicated background settings in aerial photos.
  • Cluttered arrangement - In aerial photographs, objects such as automobiles and ships are frequently packed close to each other.
  • Noisy Images - Due to the variety of disturbances, aerial picture identification calls for a more robust method.


For such instances, objects in the horizontal bounding box are contaminated with background. Oriented bounding boxes could be rotated/ aligned according to an arbitrarily oriented object thus giving tight coverage of the target object. This technique is robust to capture the objects even for the tiny and crowded vehicles. Annotation of such aerial images enables learning of tasks such as resource detection, environmental monitoring, urban planning, ship and air fleet detection.

1-a Bounding box
1.a Bounding box
1-b Oriented bounding
1.b Oriented Bounding box
2-a Bounding
2.a Bounding box
2-b Oriented bounding
2.b Oriented Bounding box

For object detection in the above pictures, on the left (1.a & 2.a), horizontal rectangular boxes are drawn over the item, and on the right (1.b & 2.b), rotated (oriented) bounding boxes are used. The outcomes are readily apparent. While the oriented bounding box has no overlapping and the backdrop has been removed, the bounding box approach has overlapping problems and causes the target object to be contaminated. This illustrates how oriented (rotated) Bounding Box approach outperforms the conventional one.

Tools:

Some of the tools for oriented bounding box are listed below:

  • roLabelImg Tool
  • MM Rotate Tool
  • Alpha Rotated Tool
  • CVAT

A demo of the oriented bonded box technique using CVAT is available @ https://youtu.be/ar8mYFl2xWs

To summarize, the oriented 2D bounding box approach is described in this article along with an explanation of why it is better than the Bounding box technique. This technique is a boon for the researchers in their expedition as the potential for studying aerial imagery widens.

With our trained and experienced Data Specialists, there is never a compromise on quality. Contact us at info@haidata.ai for more information.

Frequently Asked Questions

An oriented bounding box (OBB) is a rectangular bounding box that has been rotated to fit an object's orientation. Where a standard bounding box is always axis-aligned, an OBB adds a rotation angle so the rectangle can sit flush against a diagonal or rotated object. It helps in figuring out the object's orientation angle when it is rotated or diagonal.
The difference is rotation. A standard bounding box is axis-aligned, so labelling a diagonal object such as a ship or aircraft traps a large amount of background inside the box. An oriented bounding box rotates to fit the object, which gives better localization of the target's true size and shape, isolates it from its background, and avoids the overlap that occurs when densely packed objects are each given an axis-aligned box.
Aerial imagery has three properties that break standard bounding boxes. Objects are small and frequently overshadowed by complicated background settings; they are cluttered, with automobiles and ships packed close to each other; and the images are noisy. Objects also appear at arbitrary angles and in a variety of sizes and scales. An oriented box rotates to give tight coverage of the target, keeping background contamination out. This supports tasks such as ship and air fleet detection, resource detection, environmental monitoring and urban planning.
Five: Xc, Yc, width, height and the orientation angle. Xc and Yc give the centre point, width and height give the size of the rectangle, and the orientation angle records how far it has been rotated. A standard bounding box uses the first four only, which is precisely why it cannot express rotation.
roLabelImg, MM Rotate, Alpha Rotated Tool and CVAT all support oriented bounding box annotation. A demo of the technique using CVAT is available on YouTube. The right choice depends on the format your training pipeline expects and the scale of the project.