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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation provides details for the \u003ccode\u003eTextAnnotation\u003c/code\u003e class within the Google Cloud Video Intelligence v1 API, specifically for the .NET environment.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTextAnnotation\u003c/code\u003e is used for annotations related to detected OCR text snippets, including text content, confidence, and frame-level information.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements multiple interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, which are crucial for protobuf usage and .NET compatibility.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties such as \u003ccode\u003eSegments\u003c/code\u003e, \u003ccode\u003eText\u003c/code\u003e, and \u003ccode\u003eVersion\u003c/code\u003e, which are necessary for retrieving information about where the text appears in the video, the content of the text itself, and the feature version.\u003c/p\u003e\n"],["\u003cp\u003eThere are 7 documented versions of the api, ranging from 2.2.0 to the latest version, 3.4.0, each with its own reference documentation.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Video Intelligence v1 API - Class TextAnnotation (3.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/latest/Google.Cloud.VideoIntelligence.V1.TextAnnotation)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/3.3.0/Google.Cloud.VideoIntelligence.V1.TextAnnotation)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/3.2.0/Google.Cloud.VideoIntelligence.V1.TextAnnotation)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/3.1.0/Google.Cloud.VideoIntelligence.V1.TextAnnotation)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/3.0.0/Google.Cloud.VideoIntelligence.V1.TextAnnotation)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/2.3.0/Google.Cloud.VideoIntelligence.V1.TextAnnotation)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/2.2.0/Google.Cloud.VideoIntelligence.V1.TextAnnotation) \n\n public sealed class TextAnnotation : IMessage\u003cTextAnnotation\u003e, IEquatable\u003cTextAnnotation\u003e, IDeepCloneable\u003cTextAnnotation\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Video Intelligence v1 API class TextAnnotation.\n\nAnnotations related to one detected OCR text snippet. This will contain the\ncorresponding text, confidence value, and frame level information for each\ndetection. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e TextAnnotation \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[TextAnnotation](/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/latest/Google.Cloud.VideoIntelligence.V1.TextAnnotation), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TextAnnotation](/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](/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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.VideoIntelligence.V1](/dotnet/docs/reference/Google.Cloud.VideoIntelligence.V1/latest/Google.Cloud.VideoIntelligence.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.VideoIntelligence.V1.dll\n\nConstructors\n------------\n\n### TextAnnotation()\n\n public TextAnnotation()\n\n### TextAnnotation(TextAnnotation)\n\n public TextAnnotation(TextAnnotation other)\n\nProperties\n----------\n\n### Segments\n\n public RepeatedField\u003cTextSegment\u003e Segments { get; }\n\nAll video segments where OCR detected text appears.\n\n### Text\n\n public string Text { get; set; }\n\nThe detected text.\n\n### Version\n\n public string Version { get; set; }\n\nFeature version."]]