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.v1.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.v1.Page pages = 1;
Name | Description |
values | Iterable<? extends com.google.cloud.vision.v1.Page> |
Type | Description |
TextAnnotation.Builder |
addPages(Page value)
public TextAnnotation.Builder addPages(Page value)
List of pages detected by OCR.
repeated .google.cloud.vision.v1.Page pages = 1;
Name | Description |
value | Page |
Type | Description |
TextAnnotation.Builder |
addPages(Page.Builder builderForValue)
public TextAnnotation.Builder addPages(Page.Builder builderForValue)
List of pages detected by OCR.
repeated .google.cloud.vision.v1.Page pages = 1;
Name | Description |
builderForValue | Page.Builder |
Type | Description |
TextAnnotation.Builder |
addPages(int index, Page value)
public TextAnnotation.Builder addPages(int index, Page value)
List of pages detected by OCR.
repeated .google.cloud.vision.v1.Page pages = 1;
Name | Description |
index | int |
value | Page |
Type | Description |
TextAnnotation.Builder |
addPages(int index, Page.Builder builderForValue)
public TextAnnotation.Builder addPages(int index, Page.Builder builderForValue)
List of pages detected by OCR.
repeated .google.cloud.vision.v1.Page pages = 1;
Name | Description |
index | int |
builderForValue | Page.Builder |
Type | Description |
TextAnnotation.Builder |