# Cloud Video Intelligence V1 API - Class Google::Cloud::VideoIntelligence::V1::ObjectTrackingAnnotation (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.2 0.12.0 0.11.2 0.10.0 0.9.1 0.8.0 0.7.0 0.6.5 Reference documentation and code samples for the Cloud Video Intelligence V1 API class Google::Cloud::VideoIntelligence::V1::ObjectTrackingAnnotation.

Annotations corresponding to one tracked object.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #confidence

    def confidence() -> ::Float

**Returns**

- (::Float) --- Object category's labeling confidence of this track.

### #confidence=

    def confidence=(value) -> ::Float

**Parameter**

- **value** (::Float) --- Object category's labeling confidence of this track.
**Returns**

- (::Float) --- Object category's labeling confidence of this track.

### #entity

    def entity() -> ::Google::Cloud::VideoIntelligence::V1::Entity

**Returns**

- ([::Google::Cloud::VideoIntelligence::V1::Entity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1/latest/Google-Cloud-VideoIntelligence-V1-Entity)) --- Entity to specify the object category that this track is labeled as.

### #entity=

    def entity=(value) -> ::Google::Cloud::VideoIntelligence::V1::Entity

**Parameter**

- **value** ([::Google::Cloud::VideoIntelligence::V1::Entity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1/latest/Google-Cloud-VideoIntelligence-V1-Entity)) --- Entity to specify the object category that this track is labeled as.
**Returns**

- ([::Google::Cloud::VideoIntelligence::V1::Entity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1/latest/Google-Cloud-VideoIntelligence-V1-Entity)) --- Entity to specify the object category that this track is labeled as.

### #frames

    def frames() -> ::Array<::Google::Cloud::VideoIntelligence::V1::ObjectTrackingFrame>

**Returns**

- (::Array\<[::Google::Cloud::VideoIntelligence::V1::ObjectTrackingFrame](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1/latest/Google-Cloud-VideoIntelligence-V1-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.

### #frames=

    def frames=(value) -> ::Array<::Google::Cloud::VideoIntelligence::V1::ObjectTrackingFrame>

**Parameter**

- **value** (::Array\<[::Google::Cloud::VideoIntelligence::V1::ObjectTrackingFrame](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1/latest/Google-Cloud-VideoIntelligence-V1-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.
**Returns**

- (::Array\<[::Google::Cloud::VideoIntelligence::V1::ObjectTrackingFrame](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1/latest/Google-Cloud-VideoIntelligence-V1-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.

### #segment

    def segment() -> ::Google::Cloud::VideoIntelligence::V1::VideoSegment

**Returns**

- ([::Google::Cloud::VideoIntelligence::V1::VideoSegment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1/latest/Google-Cloud-VideoIntelligence-V1-VideoSegment)) --- Non-streaming batch mode ONLY. Each object track corresponds to one video segment where it appears.


  Note: The following fields are mutually exclusive: `segment`, `track_id`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #segment=

    def segment=(value) -> ::Google::Cloud::VideoIntelligence::V1::VideoSegment

**Parameter**

- **value** ([::Google::Cloud::VideoIntelligence::V1::VideoSegment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1/latest/Google-Cloud-VideoIntelligence-V1-VideoSegment)) --- Non-streaming batch mode ONLY. Each object track corresponds to one video segment where it appears.


  Note: The following fields are mutually exclusive: `segment`, `track_id`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::VideoIntelligence::V1::VideoSegment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1/latest/Google-Cloud-VideoIntelligence-V1-VideoSegment)) --- Non-streaming batch mode ONLY. Each object track corresponds to one video segment where it appears.


  Note: The following fields are mutually exclusive: `segment`, `track_id`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #track_id

    def track_id() -> ::Integer

**Returns**

- (::Integer) --- 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.

  Note: The following fields are mutually exclusive: `track_id`, `segment`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #track_id=

    def track_id=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- 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.


  Note: The following fields are mutually exclusive: `track_id`, `segment`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::Integer) --- 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.

  Note: The following fields are mutually exclusive: `track_id`, `segment`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #version

    def version() -> ::String

**Returns**

- (::String) --- Feature version.

### #version=

    def version=(value) -> ::String

**Parameter**

- **value** (::String) --- Feature version.
**Returns**

- (::String) --- Feature version.