# Google Cloud Video Intelligence v1 API - Class TextSegment (3.5.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [3.5.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/latest/Google.Cloud.VideoIntelligence.V1.TextSegment)
- [3.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/3.4.0/Google.Cloud.VideoIntelligence.V1.TextSegment)
- [3.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/3.3.0/Google.Cloud.VideoIntelligence.V1.TextSegment)
- [3.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/3.2.0/Google.Cloud.VideoIntelligence.V1.TextSegment)
- [3.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/3.1.0/Google.Cloud.VideoIntelligence.V1.TextSegment)
- [3.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/3.0.0/Google.Cloud.VideoIntelligence.V1.TextSegment)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/2.3.0/Google.Cloud.VideoIntelligence.V1.TextSegment)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/2.2.0/Google.Cloud.VideoIntelligence.V1.TextSegment)

    public sealed class TextSegment : IMessage<TextSegment>, IEquatable<TextSegment>, IDeepCloneable<TextSegment>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Video Intelligence v1 API class TextSegment.

Video segment level annotation results for text detection.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> TextSegment

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[TextSegment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/latest/Google.Cloud.VideoIntelligence.V1.TextSegment), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TextSegment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/latest/Google.Cloud.VideoIntelligence.V1.TextSegment), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[TextSegment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/latest/Google.Cloud.VideoIntelligence.V1.TextSegment), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.VideoIntelligence.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/latest/Google.Cloud.VideoIntelligence.V1)

## Assembly

Google.Cloud.VideoIntelligence.V1.dll

## Constructors

### TextSegment()

    public TextSegment()

### TextSegment(TextSegment)

    public TextSegment(TextSegment other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/latest/Google.Cloud.VideoIntelligence.V1.TextSegment` |

## Properties

### Confidence

    public float Confidence { get; set; }

Confidence for the track of detected text. It is calculated as the highest
over all frames where OCR detected text appears.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.single` |   |

### Frames

    public RepeatedField<TextFrame> Frames { get; }

Information related to the frames where OCR detected text appears.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/latest/Google.Cloud.VideoIntelligence.V1.TextFrame` |   |

### Segment

    public VideoSegment Segment { get; set; }

Video segment where a text snippet was detected.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/latest/Google.Cloud.VideoIntelligence.V1.VideoSegment` |   |