Class TextAnnotation.Builder

public static final class TextAnnotation.Builder extends GeneratedMessageV3.Builder<TextAnnotation.Builder> 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.v1p4beta1.TextAnnotation

Static Methods

getDescriptor()

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

Methods

addAllPages(Iterable<? extends Page> values)

public TextAnnotation.Builder addAllPages(Iterable<? extends Page> values)

List of pages detected by OCR.

repeated .google.cloud.vision.v1p4beta1.Page pages = 1;

Parameter
NameDescription
values