# ObjectTrackerConfig

ObjectTrackerConfig stores the parameters that drive the
[ObjectTracker](https://docs.luxonis.com/software-v3/depthai/depthai-components/nodes/object_tracker.md) node. It lets you
configure tracker types (zero-term / short-term), association thresholds, maximum number of simultaneously tracked objects, and
ROI re-acquisition behavior when detections are temporarily lost.

Set ObjectTracker.initialConfig to establish defaults and send live updates through inputTrackerConfig when you need to adapt the
pipeline—for example, to increase the IOU threshold in crowded scenes or to switch from median-flow to kernelized correlation
tracking. The node will apply the new configuration without requiring a pipeline rebuild.

## Reference

### dai::ObjectTrackerConfig

Kind: class

ObjectTrackerConfig message. Carries ROI (region of interest) and threshold for depth calculation

#### std::vector< int32_t > trackletIdsToRemove

Kind: variable

Tracklet IDs to remove from tracking. Tracklet will transition to REMOVED state.

#### ObjectTrackerConfig()

Kind: function

Construct ObjectTrackerConfig message.

#### ~ObjectTrackerConfig()

Kind: function

#### ObjectTrackerConfig & forceRemoveID(int32_t id)

Kind: function

Force remove a tracklet with specified ID.

#### ObjectTrackerConfig & forceRemoveIDs(std::vector< int32_t > ids)

Kind: function

Force remove tracklets with specified IDs.

#### void serialize(std::vector< std::uint8_t > & metadata, DatatypeEnum & datatype)

Kind: function

#### DatatypeEnum getDatatype()

Kind: function

Get the datatype of this specific message.

return: DatatypeEnum

#### DEPTHAI_SERIALIZE(ObjectTrackerConfig, Buffer::sequenceNum, Buffer::ts, Buffer::tsDevice, trackletIdsToRemove)

Kind: function

### Need assistance?

Head over to [Discussion Forum](https://discuss.luxonis.com/) for technical support or any other questions you might have.
