# Label Attributes

In computer vision, adding extra data to annotations is becoming more and more common. To support that, we have developed a feature we call label attributes. This feature allows you to add extra data to any annotation while you are in our annotation environment.

Label attributes are directly linked to label classes, meaning that you have to assign attributes to every class.

#### Creating a label attribute <a href="#creating-a-label-attribute" id="creating-a-label-attribute"></a>

To create a label attribute, edit the project and go to the label classes tab. Then, click on the class you want to add an attribute for. This will open up this modal:

<figure><img src="https://wiki.cloudfactory.com/media/pages/docs/userdocs/annotation-environment/manual-and-semi-automated-tools/label-attributes/62f520cc0d-1684131914/screenshot-2020-03-24-at-21.43.52.webp" alt=""><figcaption></figcaption></figure>

As you can see, there is a dropdown beneath the Label attribute heading. Here you can select which type of attribute you want to create. You can choose from:

* Boolean
* String
* Number
* Integrer
* Single choice
* Multiple choice

Annotation types impact which type of information a user can input for that attribute, and also how the UI element for that attribute will look like:

<figure><img src="https://wiki.cloudfactory.com/media/pages/docs/userdocs/annotation-environment/manual-and-semi-automated-tools/label-attributes/91a7ac4c7c-1684131914/screenshot-2020-03-24-at-21.44.53.webp" alt=""><figcaption><p>For this truck project, we use four attributes (TtB): String, single choice, number, multiple choice</p></figcaption></figure>

#### Single choice and multiple choice values <a href="#single-choice-and-multiple-choice-values" id="single-choice-and-multiple-choice-values"></a>

If you create annotations of single choice or multiple choice types you need to specify values. These values are needed to populate the dropdown lists both of these types show users:

To add values, click on an attribute while you are in editing mode. As long as the attribute you clicked on is one of these two types, you will have an attribute value input. To add a value, write it in the input field and then press "enter".

#### Add descriptions <a href="#add-descriptions" id="add-descriptions"></a>

You can also add descriptions to attributes. These will then be shown to annotators when they annotate like so:

<figure><img src="https://wiki.cloudfactory.com/media/pages/docs/userdocs/annotation-environment/manual-and-semi-automated-tools/label-attributes/f18d7724db-1684131914/screenshot-2020-03-24-at-21.51.08.webp" alt=""><figcaption></figcaption></figure>

To add an attribute, go to the label class tab while editing a project, click on the class and then the attribute you want to add a description to. Now you should see a description input field. Write your description here.

#### Adding attributes to objects <a href="#adding-attributes-to-objects" id="adding-attributes-to-objects"></a>

When you are done with setting up your attributes, you can go to the annotation environment. Next, click on the _label attributes_ tab in the right menu. This will open up the label attributes annotation view. Until you have selected an annotation which has a given class which has attributes specified for it, this view will be empty. But when you have selected an annotation with a class for which you set up attributes, all attributes will be shown here.

Now, you can put in whatever data you want for that specific annotation through the different UI elements.

<figure><img src="https://wiki.cloudfactory.com/media/pages/docs/userdocs/annotation-environment/manual-and-semi-automated-tools/label-attributes/e6acde54e9-1684131914/attributes-demo.webp" alt=""><figcaption></figcaption></figure>

Use "tab" to go to the next attribute in the list without having to use the mouse
