# Object Detection

{% hint style="info" %}
You'll need to install AI modules and have a computer with GPU to complete this tutorial. Please refer to the [installation guide](/augelab-studio-interface/external-features/module-downloader.md#installing-the-ai-bundle) for further instructions.
{% endhint %}

Object detection has been a very hot topic in both computer vision and public media. This practice is widely applied to many different industries and has many more potential application areas.

This tutorial will show you how to create a simple collision warning system on a public bus.

### Footage <a href="#footage" id="footage"></a>

As for any scenario, we'll need front-side footage of a public bus. Go ahead and download the dash-cam video:

{% file src="/files/G88Zi6gerTPJ07eRUden" %}

Using [Video](/function-blocks/input-output/image-inputs/video.md) block, we'll be reading the dash cam results. We'll also need [Object Detection](/function-blocks/ai-blocks/object-detection.md) block to detect any human, bike or cars that we might come in contact with.

Go ahead and create the scenario below:

<figure><img src="/files/tOcGBALR8pHwGwFFyVbE" alt=""><figcaption></figcaption></figure>

Since our collision detection system should only check if there is an object standing in front of our bus, we'll have to use the [Check Area](/function-blocks/detections-shapes/roi-processing/check-area.md) block and select the collision warning area:

<figure><img src="/files/B74x3FNEExvDHnPWrIA1" alt=""><figcaption></figcaption></figure>

[Check Area](/function-blocks/detections-shapes/roi-processing/check-area.md) block will allow us to assess if there are any objects in our reference bounding box area. Use [Not](/function-blocks/data-logic/logic/not.md) and [Led Output](/function-blocks/input-output/outputs-exports/led-output.md) blocks to indicate if our collision system works as expected or not:

<figure><img src="/files/QXSVQqIPiD1t64FhtnnO" alt=""><figcaption></figcaption></figure>


---

# 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/example-projects/object-detection.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.
