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.v1p3beta1.TextAnnotation
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TextAnnotation.BuilderImplements
TextAnnotationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
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.v1p3beta1.Page pages = 1;
Name | Description |
values | Iterable<? extends com.google.cloud.vision.v1p3beta1.Page> |
Type | Description |