# Video Segmentation

## Setup the Dataset

Navigate to [udt.dev](https://udt.dev) and click "New File"

![Click "New File" on udt.dev](https://708390366-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFuZsfsLW71orr4EXRY%2F-MI1-I35x0iE2R-GuGoG%2F-MI11H2GNT530d7n2r1Q%2Fimage.png?alt=media\&token=8438ff28-e06e-4025-86ab-0be4818a2730)

Then select the Video Segmentation button from the `Setup > Data Type` page.

![](https://708390366-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFuZsfsLW71orr4EXRY%2F-MI5xmI5P1vIVEHqJPCX%2F-MI5yZO_K24uUxEykcwf%2Fimage.png?alt=media\&token=bc028732-3396-4c41-abdd-e04362301516)

You can configure the Video Segmentation to create the right labels or segmentation region types for your dataset. Use the `Setup > Preview` button to see your interface against either an example image or a sample from your dataset.

#### Configuring Regions and Labels

The Video Segmentation interface allows different types of regions, the options for regions are:

* bounding-box
* polygon
* point

Each region can any number of labels, which can be configured under "Available Labels"

![Configure Video Segmentation Interface](https://708390366-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFuZsfsLW71orr4EXRY%2F-MIFkYEZAnyme7Xcy83d%2F-MIFkkxJ1GV0foSAjuDl%2Fimage.png?alt=media\&token=31bb51ac-1403-4ee8-9d13-fc1a168c83df)

## Import Data

You can use any of the following methods to import video data.

* [Import File URLs](https://docs.universaldatatool.com/importing-data/import-file-urls)
* [Import from CSV or JSON](https://docs.universaldatatool.com/importing-data/import-from-csv-or-json)

## Label your Data (with friends!)

The easiest way to use a Video Segmentation dataset is using the JSON or CSV format. You can use the timeline at the top to go to different frames of the video. Regions will automatically interpolate between frames.

![](https://708390366-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFuZsfsLW71orr4EXRY%2F-MIFkYEZAnyme7Xcy83d%2F-MIFlcz3Lwuvk-MW-VKN%2Fimage.png?alt=media\&token=436a44c1-36c3-4729-965f-5e95f8e87fd9)

## Export and Use

Use the "Download JSON" or "Download CSV" button at the top when you're done labeling.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.universaldatatool.com/building-and-labeling-datasets/video-segmentation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
