# Basics

In this part, you will load a video, add your first blocks, connect sockets, run one frame at a time, and select the golf ball as a reference.

{% stepper %}
{% step %}

### Download the sample video

Download the sample video below.

{% file src="/files/La3aUpMZcBZ3rffKrjGz" %}
{% endstep %}

{% step %}

### Add the Video block

Return to AugeLab Studio and drag the **Video** block from the blocks bar into the scenario.

![](/files/gs4Db1bBsRc9N54oqoeS)

Click **Select Video File** inside the block and load the video.

![](/files/b45jI0CWDvaXtGMVlcpo)

Disable real-time streaming by clicking **Real-time**.

![](/files/gZbFmPUK6xB9za2gcSMT)
{% endstep %}

{% step %}

### Add Image ROI Select

Go to **Detections/Shapes** in the blocks bar and drag **Image ROI Select** into the scenario.

![](/files/8bD4C8EYa9ZuBfiMc8Fh)

When it is first added, the block is empty because no image is connected yet.

![](/files/r555V1qUNcJryI2ORUYB)
{% endstep %}

{% step %}

### Connect the blocks

Click the **Image** output socket of the **Video** block.

![](/files/SyahtfyLuFieeAlo0pyE)

Move the cursor to the **Image** input socket of **Image ROI Select** and click again to create the connection.

![](/files/oHkpTjgv9WmtenJ3w95b)
{% endstep %}

{% step %}

### Run one frame

Press **Run Step** from the menu bar to process one video frame.

![](/files/MEEaXJqNJmG7Okmu91Tt)

You should now see the frame in the ROI block.

![](/files/ximTuhlq7nbcIIT2nti1)
{% endstep %}

{% step %}

### Select the golf ball

Click, drag, and release around the golf ball to define the ROI.

![](/files/nEtRj6QTcjsMbF7XEUcj)

This selected area will be used as the reference in the next part.
{% endstep %}

{% step %}

### Move and zoom the scenario

Press and hold the middle mouse button to move around the scenario.

![](/files/99VD5Ln1bn3pttKtKPZF)

Use the mouse wheel to zoom in and out.

![](/files/DxI5irTEEPvm5xmz3y5n)
{% endstep %}
{% endstepper %}

You now know the basics: adding blocks, connecting sockets, running a step, selecting an ROI, and navigating the scenario. Continue with the detection page.


---

# 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.augelab.com/getting-started/your-very-first-project/basics.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.
