Google Cloud Vision v1 API - Class TextAnnotation (3.5.0)

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.

Inheritance

object > TextAnnotation

Namespace

Google.Cloud.Vision.V1

Assembly

Google.Cloud.Vision.V1.dll

Constructors

TextAnnotation()

public TextAnnotation()

TextAnnotation(TextAnnotation)

public TextAnnotation(TextAnnotation other)
Parameter
NameDescription
otherTextAnnotation

Properties

Pages

public RepeatedField<Page> Pages { get; }

List of pages detected by OCR.

Property Value
TypeDescription
RepeatedFieldPage

Text

public string Text { get; set; }

UTF-8 text detected on the pages.

Property Value
TypeDescription
string