public sealed class TextAnnotation : IMessage<TextAnnotation>, IEquatable<TextAnnotation>, IDeepCloneable<TextAnnotation>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Vision v1 API class TextAnnotation.
TextAnnotation contains a structured representation of OCR extracted text.
The hierarchy of an OCR extracted text structure is like this:
TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
Each structural component, starting from Page, may further have their own
properties. Properties describe detected languages, breaks etc.. Please refer
to the
[TextAnnotation.TextProperty][google.cloud.vision.v1.TextAnnotation.TextProperty]
message definition below for more detail.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-17 UTC."],[[["The `TextAnnotation` class provides a structured representation of text extracted via Optical Character Recognition (OCR) using the Google Cloud Vision v1 API."],["The OCR text structure is hierarchical, starting with `TextAnnotation` and breaking down into `Page`, `Block`, `Paragraph`, `Word`, and `Symbol` components, with each level potentially having its own properties."],["`TextAnnotation` implements several interfaces, including `IMessage`, `IEquatable`, and `IDeepCloneable`, and inherits from `object`."],["The class has properties for `Pages`, which is a list of detected pages, and `Text`, which holds the UTF-8 text from the pages, and also contains multiple versions, from `3.7.0` down to `2.3.0`."]]],[]]