> For the complete documentation index, see [llms.txt](https://docs.imerit.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.imerit.net/plugins/first-party-ango-plugins/object-tracker.md).

# Object Tracker

## Overview

The Object Tracker plugin is a model plugin that propagates bounding boxes forward through video frames.

Use this plugin when you have manually marked an object in one frame and want the plugin to create predicted bounding boxes for the following frames.

<table data-card-size="large" data-view="cards"><thead><tr><th align="center"></th><th data-hidden data-card-cover data-type="image">Cover image</th></tr></thead><tbody><tr><td align="center">Object Tracker</td><td data-object-fit="contain"><a href="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2Fgit-blob-ef7137d11668369ac71908e19f78b50d3e83927d%2Fobject-tracker.png?alt=media">object-tracker.png</a></td></tr></tbody></table>

## Plugin Functionality

The Object Tracker plugin runs on video assets. It looks for bounding-box annotations whose class title ends in `_toTrack`, tracks those boxes forward through the video, and returns predicted bounding boxes using the matching class without `_toTrack`.

For example, if your ontology contains:

* `Vehicle`
* `Vehicle_toTrack`

you can draw a `Vehicle_toTrack` bounding box on a video frame. The plugin will create predicted `Vehicle` boxes on later frames.

{% hint style="warning" %}
The plugin only processes bounding-box annotations with class titles ending in `_toTrack`. Make sure the project ontology also contains the matching destination bounding-box class without `_toTrack`.
{% endhint %}

### Supported Data Types

* Video

### Supported Annotation Tools

* Bounding Box

## Plugin Configuration

You may vary a number of settings related to tracking from the **Config JSON** field. Each option is detailed below:

```json
{
  "model_index": 4,
  "num_predictions": 20,
  "stride": 1,
  "include_key_frames_only": true
}
```

* **"model\_index":** Selects the OpenCV tracker used by the plugin.
  * Options:
    * <kbd>0</kbd>: BOOSTING
    * <kbd>1</kbd>: MIL
    * <kbd>2</kbd>: KCF
    * <kbd>3</kbd>: TLD
    * <kbd>4</kbd>: MEDIANFLOW
    * <kbd>5</kbd>: MOSSE
    * <kbd>6</kbd>: CSRT
  * Example:
    * <kbd>"model\_index": 4</kbd>
* **"num\_predictions":** Maximum number of future frames for which the plugin should attempt to create predictions.
  * Example:
    * <kbd>"num\_predictions": 20</kbd>
* **"stride":** Controls how often predicted boxes are returned. A stride of 1 returns every predicted frame, while a higher value skips intermediate predictions.
  * Example:
    * <kbd>"stride": 1</kbd>
* **"include\_key\_frames\_only":** Included in the default configuration for consistency with video plugins. Object Tracker follows the frames it processes from the source video.
  * Example:
    * <kbd>"include\_key\_frames\_only": true</kbd>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.imerit.net/plugins/first-party-ango-plugins/object-tracker.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
