> For the complete documentation index, see [llms.txt](https://guide.petoi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.petoi.com/extensible-modules/petoi-ai-vision-module/custom-petoi-vision-model/getting-started/object-detection.md).

# Object detection

{% hint style="info" %}
💡 Reminder: All code and scripts for this project are executed in the cloud. Open the [Google Colab Notebook](https://colab.research.google.com/drive/1OPTGxdn03eJU69hFMEPp0hzXAPZfEDNZ?usp=sharing) and select Runtime > Run all to execute the setup.
{% endhint %}

### What is object detection?

Object detection identifies objects in a camera image and locates each one. For every detection, the model returns:

* A class label, such as `person`, `ball`, or `helmet`.
* A confidence score.
* A bounding box around the object.

Object detection differs from image classification. Classification assigns one label to an entire image. Object detection can find several objects in a single image.

### How it works with Petoi AI Vision

Petoi AI Vision combines a camera with an embedded AI processor. The module captures images, runs the deployed model locally, and sends detection results to the robot controller.

The robot can use these results to react to its surroundings. For example, it can follow a ball, recognize a person, or respond to a gesture.

{% hint style="info" %}
The final model must be optimized for the Ethos-U55 accelerator on Petoi AI Vision.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://guide.petoi.com/extensible-modules/petoi-ai-vision-module/custom-petoi-vision-model/getting-started/object-detection.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
