> ## Documentation Index
> Fetch the complete documentation index at: https://api-reference.scale.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Uploading Annotations from UI

Nucleus currently supports directly uploading bounding box annotations [from UI](https://dashboard.scale.com/nucleus/onboarding) in the following text file formats (TXT, JSON). For other annotation formats, please use the Nucleus API.

![Nucleus UI Annotation Upload 5.04.46 PM](https://mintcdn.com/scale-full-docs/0LAM4ucKzAG9Dmk0/assets/nucleus/16e49b3-Nucleus_UI_Annotation_Upload_5.04.46_PM.webp?fit=max\&auto=format\&n=0LAM4ucKzAG9Dmk0\&q=85\&s=85dd36ee3032bb97de29d373289f1b4c)

## `COCO Object Detection`

Sample annotation file structure from the [COCO 2017 Validation Dataset](https://cocodataset.org/#download).

```text annotations.json theme={null}
{
    "info": {
        "description": "COCO 2017 Dataset",
        "url": "http://cocodataset.org",
        "version": "1.0",
        "year": 2017,
        "contributor": "COCO Consortium",
        "date_created": "2017/09/01"
    },
    "licenses": [
        {
            "url": "http://creativecommons.org/licenses/by-nc-sa/2.0/",
            "id": 1,
            "name": "Attribution-NonCommercial-ShareAlike License"
        },
        ...   
    ],
    "images": [
        {
            "id": 397133,
            "license": 4,
            "file_name": "000000397133.jpg",
            "height": 427,
            "width": 640,
            "date_captured": "2013-11-14 17:02:52"
        },
        ...
    ],
    "annotations": [
        {
            "id": 82445,
            "image_id": 397133,
            "category_id": 44,
            "bbox": [217.62, 240.54, 38.99, 57.75],
            "segmentation": [...],
            "area": 1481.38,
            "iscrowd": 0
        },
        ...
    ],
    "categories": [
        {	
            "id": 44,
            "name": "bottle",
            "supercategory": "kitchen"
        },
        ...
    ]
}
```

## `PASCAL Annotation Version 1.00`

Sample annotation file from the [Penn-Fudan Pedestrian Database](https://www.cis.upenn.edu/~jshi/ped_html/).

```text FudanPed00001.txt theme={null}
# Compatible with PASCAL Annotation Version 1.00
Image filename : "PennFudanPed/PNGImages/FudanPed00001.png"
Image size (X x Y x C) : 559 x 536 x 3
Database : "The Penn-Fudan-Pedestrian Database"
Objects with ground truth : 2 { "PASpersonWalking" "PASpersonWalking" }
# Note there may be some objects not included in the ground truth list for they are severe-occluded
# or have very small size.
# Top left pixel co-ordinates : (1, 1)
# Details for pedestrian 1 ("PASpersonWalking")
Original label for object 1 "PASpersonWalking" : "PennFudanPed"
Bounding box for object 1 "PASpersonWalking" (Xmin, Ymin) - (Xmax, Ymax) : (160, 182) - (302, 431)
Pixel mask for object 1 "PASpersonWalking" : "PennFudanPed/PedMasks/FudanPed00001_mask.png"

# Details for pedestrian 2 ("PASpersonWalking")
Original label for object 2 "PASpersonWalking" : "PennFudanPed"
Bounding box for object 2 "PASpersonWalking" (Xmin, Ymin) - (Xmax, Ymax) : (420, 171) - (535, 486)
Pixel mask for object 2 "PASpersonWalking" : "PennFudanPed/PedMasks/FudanPed00001_mask.png"
```

Corresponding sample image, before and after annotations are applied from the file above.

![FudanPed00001](https://mintcdn.com/scale-full-docs/0LAM4ucKzAG9Dmk0/assets/nucleus/acf61ca-FudanPed00001.webp?fit=max\&auto=format\&n=0LAM4ucKzAG9Dmk0\&q=85\&s=ca4e2ed4ec79d1c15b6be93388ee6eeb)
