Class TextAnnotation (2.1.4)

public final class TextAnnotation extends GeneratedMessageV3 implements TextAnnotationOrBuilder

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 message definition below for more detail.

Protobuf type google.cloud.vision.v1p1beta1.TextAnnotation

Static Fields

PAGES_FIELD_NUMBER

public static final int PAGES_FIELD_NUMBER
Field Value
TypeDescription
int

TEXT_FIELD_NUMBER

public static final int TEXT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TextAnnotation getDefaultInstance()
Returns
TypeDescription
TextAnnotation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static TextAnnotation.Builder newBuilder()
Returns
TypeDescription
TextAnnotation.Builder

newBuilder(TextAnnotation prototype)

public static TextAnnotation.Builder newBuilder(TextAnnotation prototype)
Parameter
NameDescription
prototype