> For the complete documentation index, see [llms.txt](https://docs.imerit.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.imerit.net/labeling/labeling-tools/tools/rotated-bounding-box.md).

# Rotated Bounding Box

The rotated bounding box labeling tool allows you to draw a box around an object or point of interest in an image, and to then rotate it.

{% hint style="info" %}
The Rotated Bounding Box tool is supported across the Image and Video labeling editors.
{% endhint %}

![](/files/P5hQifj7I0hZolcjFfVc)

## The Rotated Bounding Box Tool in Ango Hub <a href="#how-to-add-a-bounding-box-tool-to-your-project" id="how-to-add-a-bounding-box-tool-to-your-project"></a>

### How to add a Rotated Bounding Box tool to your project <a href="#how-to-add-a-bounding-box-tool-to-your-project" id="how-to-add-a-bounding-box-tool-to-your-project"></a>

From the project’s *Settings* tab, enter the *Category Schema* section.

Click on *Add Category*. From the list that appears, click on *Rotated Bounding Box*.

A new row will appear named *Rotated Bounding Box*. Click on it to expand it.

<figure><img src="/files/NGIoPV82mYLaduyvIlEJ" alt=""><figcaption></figcaption></figure>

Give your rotated bounding box tool a title.

**Required:** Enable the *Required* toggle if you want to force labelers to create a rotated bounding box for each asset. When the toggle is disabled, labelers will be able to save and move to the next asset without creating the rotated bounding box.

**Targeted OCR**: By enabling this, you will be able to perform OCR and get the OCR results in the exports for the areas highlighted by the bounding boxes belonging to this class.

If you would like to ask labelers further questions, for example, if you want to show a further *radio* after drawing the rotated bounding box, click on *Add Classification* and add a further question. [More on nested questions here](/labeling/labeling-tools/tools/nested-classifications.md).

### How to Draw a Rotated Bounding Box <a href="#how-to-draw-a-bounding-box" id="how-to-draw-a-bounding-box"></a>

Click on the image where you'd like the top-left corner of the rotated bounding box to be. Click again where you'd like the box to end.

![](/files/P5hQifj7I0hZolcjFfVc)

The line and point outside the box indicate the direction of the rotated bounding box. When the *Show Rotated Bounding Box Rotation Handles* editor setting is enabled, they remain visible after you deselect the object, making it easier to see the box's orientation at a glance.

<figure><img src="/files/AM6nV0XivqCcNYoqtplW" alt="Rotated bounding box direction handle shown outside the box"><figcaption></figcaption></figure>

You can change the angle of the box by selecting it, then clicking and dragging on the point located just outside the box. When the object is not selected, visible direction handles are read-only and cannot be used to rotate the box. Turn off *Show Rotated Bounding Box Rotation Handles* if you do not want unselected rotated bounding boxes to show the direction handle and line.

## Perform OCR on the contents of the bounding box

Hub allows you to perform OCR on the contents of rotated bounding boxes, both single and in bulk.

To do so, when adding your rotated bounding box class to your project, enable the *Targeted OCR* toggle as mentioned in the previous section.

{% hint style="warning" %}
Targeted OCR will only work if the rotation handle is at the **top**.
{% endhint %}

### On a Single Rotated Bounding Box

Once you are in the labeling editor, draw a bounding box over the text you'd like to perform OCR on. Then, right-click on the box and expand the context menu.

Click on the![](/files/WLqlC7wZg5KtU23eqnbU)button to perform OCR on the area highlighted by the box. The OCR results will appear in the context menu, together with how confident our OCR module is about the OCR results:

<figure><img src="/files/5dzVhQJXhF15MvRzv85E" alt=""><figcaption></figcaption></figure>

### On Multiple Rotated Bounding Boxes <a href="#differences-between-bounding-box-and-polygon" id="differences-between-bounding-box-and-polygon"></a>

In the labeling editor, press *Shift* and click on the rotated bounding boxes you'd like to perform OCR on. Once you have selected all boxes, right click on any one of them and click on *Run OCR*.

To see the OCR results, right-click on a box and expand the context menu that appears. Alternatively, expand the rows in the *Objects* section in the lower-left corner of the UI.
