# Cloud Video Intelligence V1 API - Class Google::Cloud::VideoIntelligence::V1::TextAnnotation (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::TextAnnotation.

Annotations related to one detected OCR text snippet. This will contain the
corresponding text, confidence value, and frame level information for each
detection.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #segments

    def segments() -> ::Array<::Google::Cloud::VideoIntelligence::V1::TextSegment>

**Returns**

- (::Array\<[::Google::Cloud::VideoIntelligence::V1::TextSegment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1/latest/Google-Cloud-VideoIntelligence-V1-TextSegment)\>) --- All video segments where OCR detected text appears.

### #segments=

    def segments=(value) -> ::Array<::Google::Cloud::VideoIntelligence::V1::TextSegment>

**Parameter**

- **value** (::Array\<[::Google::Cloud::VideoIntelligence::V1::TextSegment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1/latest/Google-Cloud-VideoIntelligence-V1-TextSegment)\>) --- All video segments where OCR detected text appears.
**Returns**

- (::Array\<[::Google::Cloud::VideoIntelligence::V1::TextSegment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1/latest/Google-Cloud-VideoIntelligence-V1-TextSegment)\>) --- All video segments where OCR detected text appears.

### #text

    def text() -> ::String

**Returns**

- (::String) --- The detected text.

### #text=

    def text=(value) -> ::String

**Parameter**

- **value** (::String) --- The detected text.
**Returns**

- (::String) --- The detected text.

### #version

    def version() -> ::String

**Returns**

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

### #version=

    def version=(value) -> ::String

**Parameter**

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

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