# Class ObjectTrackingAnnotation (2.20.0)

2.20.0 (latest) 2.19.0 2.18.0 2.17.0 2.16.2 2.15.0 2.14.1 2.13.5 2.12.0 2.11.4 2.10.1 2.9.0 2.8.3 2.7.1 2.6.1 2.5.1 2.4.0 2.3.3 2.2.0 2.1.0 2.0.0 1.16.3 1.15.0 1.14.0 1.13.0 1.12.1 1.11.0 1.10.0

    ObjectTrackingAnnotation(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Annotations corresponding to one tracked object.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `segment` | `https://docs.cloud.google.com/python/docs/reference/videointelligence/latest/google.cloud.videointelligence_v1.types.VideoSegment` Non-streaming batch mode ONLY. Each object track corresponds to one video segment where it appears. This field is a member of `oneof`_ `track_info`. |
| `track_id` | `int` Streaming mode ONLY. In streaming mode, we do not know the end time of a tracked object before it is completed. Hence, there is no VideoSegment info returned. Instead, we provide a unique identifiable integer track_id so that the customers can correlate the results of the ongoing ObjectTrackAnnotation of the same track_id over time. This field is a member of `oneof`_ `track_info`. |
| `entity` | `https://docs.cloud.google.com/python/docs/reference/videointelligence/latest/google.cloud.videointelligence_v1.types.Entity` Entity to specify the object category that this track is labeled as. |
| `confidence` | `float` Object category's labeling confidence of this track. |
| `frames` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/videointelligence/latest/google.cloud.videointelligence_v1.types.ObjectTrackingFrame]` Information corresponding to all frames where this object track appears. Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame messages in frames. Streaming mode: it can only be one ObjectTrackingFrame message in frames. |
| `version` | `str` Feature version. |