# Cloud Video Intelligence V1p2beta1 API - Class Google::Cloud::VideoIntelligence::V1p2beta1::TextSegment (v0.18.0)

0.18.0 (latest) 0.17.0 0.16.1 0.15.0 0.14.0 0.13.1 0.12.0 0.11.2 0.10.2 0.9.0 0.8.1 0.7.0 0.6.0 0.5.0 0.4.5 Reference documentation and code samples for the Cloud Video Intelligence V1p2beta1 API class Google::Cloud::VideoIntelligence::V1p2beta1::TextSegment.

Video segment level annotation results for text detection.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #confidence

    def confidence() -> ::Float

**Returns**

- (::Float) --- Confidence for the track of detected text. It is calculated as the highest over all frames where OCR detected text appears.

### #confidence=

    def confidence=(value) -> ::Float

**Parameter**

- **value** (::Float) --- Confidence for the track of detected text. It is calculated as the highest over all frames where OCR detected text appears.
**Returns**

- (::Float) --- Confidence for the track of detected text. It is calculated as the highest over all frames where OCR detected text appears.

### #frames

    def frames() -> ::Array<::Google::Cloud::VideoIntelligence::V1p2beta1::TextFrame>

**Returns**

- (::Array\<[::Google::Cloud::VideoIntelligence::V1p2beta1::TextFrame](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1p2beta1/latest/Google-Cloud-VideoIntelligence-V1p2beta1-TextFrame)\>) --- Information related to the frames where OCR detected text appears.

### #frames=

    def frames=(value) -> ::Array<::Google::Cloud::VideoIntelligence::V1p2beta1::TextFrame>

**Parameter**

- **value** (::Array\<[::Google::Cloud::VideoIntelligence::V1p2beta1::TextFrame](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1p2beta1/latest/Google-Cloud-VideoIntelligence-V1p2beta1-TextFrame)\>) --- Information related to the frames where OCR detected text appears.
**Returns**

- (::Array\<[::Google::Cloud::VideoIntelligence::V1p2beta1::TextFrame](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1p2beta1/latest/Google-Cloud-VideoIntelligence-V1p2beta1-TextFrame)\>) --- Information related to the frames where OCR detected text appears.

### #segment

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

**Returns**

- ([::Google::Cloud::VideoIntelligence::V1p2beta1::VideoSegment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1p2beta1/latest/Google-Cloud-VideoIntelligence-V1p2beta1-VideoSegment)) --- Video segment where a text snippet was detected.

### #segment=

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

**Parameter**

- **value** ([::Google::Cloud::VideoIntelligence::V1p2beta1::VideoSegment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1p2beta1/latest/Google-Cloud-VideoIntelligence-V1p2beta1-VideoSegment)) --- Video segment where a text snippet was detected.
**Returns**

- ([::Google::Cloud::VideoIntelligence::V1p2beta1::VideoSegment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video_intelligence-v1p2beta1/latest/Google-Cloud-VideoIntelligence-V1p2beta1-VideoSegment)) --- Video segment where a text snippet was detected.