# Google Cloud Video Intelligence v1 API - Class TextAnnotation (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.TextAnnotation)
- [3.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/3.4.0/Google.Cloud.VideoIntelligence.V1.TextAnnotation)
- [3.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/3.3.0/Google.Cloud.VideoIntelligence.V1.TextAnnotation)
- [3.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/3.2.0/Google.Cloud.VideoIntelligence.V1.TextAnnotation)
- [3.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/3.1.0/Google.Cloud.VideoIntelligence.V1.TextAnnotation)
- [3.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/3.0.0/Google.Cloud.VideoIntelligence.V1.TextAnnotation)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/2.3.0/Google.Cloud.VideoIntelligence.V1.TextAnnotation)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/2.2.0/Google.Cloud.VideoIntelligence.V1.TextAnnotation)

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

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

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

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[TextAnnotation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/latest/Google.Cloud.VideoIntelligence.V1.TextAnnotation), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TextAnnotation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/latest/Google.Cloud.VideoIntelligence.V1.TextAnnotation), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[TextAnnotation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/latest/Google.Cloud.VideoIntelligence.V1.TextAnnotation), [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

### TextAnnotation()

    public TextAnnotation()

### TextAnnotation(TextAnnotation)

    public TextAnnotation(TextAnnotation other)

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

## Properties

### Segments

    public RepeatedField<TextSegment> Segments { get; }

All video segments 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.TextSegment` |   |

### Text

    public string Text { get; set; }

The detected text.

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

### Version

    public string Version { get; set; }

Feature version.

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