# Group Relation

The Group Relation labeling tool allows you to create a relation between two or more annotations.

{% hint style="info" %}
The Group Relation tool is supported across the Audio, Image, Video, DICOM, PDF, and Text labeling editors.
{% endhint %}

<figure><img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FPaIrklwWq3ufN92PKk1s%2Fimage.png?alt=media&#x26;token=916f2c4f-d565-4a86-8292-6a519b7fb471" alt=""><figcaption></figcaption></figure>

### How to add a Group Relation 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 *Label Set* section.

Click on *Add Category*. From the list that appears, click on *Group*.

A new row will appear named *Group*. Click on it to expand it.

<figure><img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FEg4YF3kykTtBMArtBhJW%2Fimage.png?alt=media&#x26;token=3ec5d1c9-c0ae-4d21-adb8-00328d4f3306" alt="" width="563"><figcaption></figcaption></figure>

Give your group relation tool a title and description.

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

## How to Draw a Single Relation <a href="#how-to-draw-a-bounding-box" id="how-to-draw-a-bounding-box"></a>

There are two ways to add a group relation in Hub.

1. Click on the first label to include in the group relation. Then, shift-click on all other annotations you wish to include. Right-click on any one of them, and select your group relation under the *Grouping* menu item:

<figure><img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2Fzg23n5aIpC3DzgJHlrhB%2Fimage.png?alt=media&#x26;token=0711a8d5-2a06-4274-a5cf-aa60b4956637" alt="" width="563"><figcaption></figcaption></figure>

2. Click on any one of the *Group Relation* tools you have created from the *Tools* section on the left of the screen. Then, left-click on all annotations you wish to include. Press "N" on your keyboard when you are done to close the group relation.

{% hint style="info" %}
If you wish to add an annotation to more than one group relation:

1. Hide the relation it is currently part of by pressing "H" on your keyboard.
2. Add the annotation to the second group relation.
3. Press "Shift + H" to unhide all relations.
   {% endhint %}
