---
title: "objectTrackingOptions"
canonical: "https://help.vicon.com/space/ShogunPost121/1253738193/objectTrackingOptions"
format: markdown
---
# Description

Sets the options for object tracking.

These options match those on the **Object Tracking** tab in the **Processing** panel.

## Functional area

Data Editing

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `objectTrackingOptions [-reprojectionThreshold float] [-entranceThreshold float] [-minObjectMarkerSeparation integer] [-objectTrackingLevel string] [-sequentialWeightingLookBack integer] [-sequentialWeightingLookAhead integer] [-numThreads integer] [-reset]` |

### Arguments

None

### Flags

> Macro (scroll-tablelayout)

| **Name** | **Argument type** | **Comments** |
| --- | --- | --- |
| `reprojectionThreshold` | Float | Max allowable distance (pixels, default 1.25) between a centroid and the projection of a marker into the same camera. Applies only to markers tracked with the Object Tracker. If you need to increase the Environmental Drift Tolerance (see [reconstructOptions](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736740)), increase this value accordingly. |
| `entranceThreshold` | Float | Max proportion of markers (default 1) that must be visible to the cameras before an object is booted. |
| `minObjectMarkerSeparation` | Integer | Min allowable separation between objects (mm, default 10) based on the smallest distance between a marker on each object. |
| `objectTrackingLevel` | string | Specifies whether grayscale should be used to improve object tracking (default `UseGrayscale`). Options are:<br>- `Standard`
- `UseGrayscale` (the .*x2d* must contain grayscale data)
- `ObjectTrackingOnly` (the .*x2d* must contain grayscale data and allows lower quality centroids) |
| `sequentialWeightingLookBack` | integer | Must be between the values 0 to 10000 (default 20) |
| `sequentialWeightingLookAhead` | integer | Must be between the values 0 to 10000 (default 20) |
| `numThreads` | integer | Number of threads used by the object tracker (default 0). For auto settings, set to 0. |
| `reset` |  |  |

## Return value

void

## Examples

```plaintext
// These examples show each of the three values 
// to which you can set objectTrackingLevel.
objectTrackingOptions -objectTrackingLevel "Standard";
objectTrackingOptions -objectTrackingLevel "UseGrayscale";
objectTrackingOptions -objectTrackingLevel "ObjectTrackingOnly";
```

# Additional information

## Related commands

- [reconstructOptions](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736740)