# Detección de objetos

{% hint style="info" %}
Necesitarás instalar los módulos de AI y disponer de un ordenador con GPU para completar este tutorial. Consulta la [installation guide](/spanish/interfaz-de-augelab-studio/external-features/module-downloader.md#installing-the-ai-bundle) para más instrucciones.
{% endhint %}

La detección de objetos es un tema de gran interés tanto en visión por computador como en los medios. Esta práctica se aplica ampliamente en muchas industrias y tiene aún más áreas potenciales de aplicación.

Este tutorial te mostrará cómo crear un sencillo sistema de aviso de colisión en un autobús público.

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

Como en cualquier escenario, necesitaremos metraje frontal de un autobús público. Descarga el video de la dash-cam:

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

Usando el bloque [Video](/spanish/bloques-de-funcion/input-output/image-inputs/video.md), leeremos el resultado de la dash-cam. También necesitaremos el bloque [Object Detection](/spanish/bloques-de-funcion/ai-blocks/object-detection.md) para detectar cualquier persona, bicicleta o coche con el que podamos entrar en contacto.

Crea el siguiente escenario:

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

Dado que nuestro sistema de detección de colisiones debe comprobar únicamente si hay un objeto delante del autobús, tendremos que usar el bloque [Check Area](/spanish/bloques-de-funcion/detections-shapes/roi-processing/check-area.md) y seleccionar el área de aviso de colisión:

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

El bloque [Check Area](/spanish/bloques-de-funcion/detections-shapes/roi-processing/check-area.md) nos permitirá evaluar si hay objetos en el área del cuadro de referencia. Usa los bloques [Not](/spanish/bloques-de-funcion/data-logic/logic/not.md) y [Led Output](/spanish/bloques-de-funcion/input-output/outputs-exports/led-output.md) para indicar si nuestro sistema de colisión funciona como se espera o no:

<figure><img src="/files/6Sgp0o2XuH087DS9LWWz" 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/spanish/proyectos-de-ejemplo/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.
