Class TextAnnotation (3.3.1)

Stay organized with collections Save and categorize content based on your preferences.
TextAnnotation(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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.


pages MutableSequence[]
List of pages detected by OCR.
text str
UTF-8 text detected on the pages.



DetectedBreak(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Detected start or end of a structural component.


DetectedLanguage(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Detected language for a structural component.


TextProperty(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Additional information detected on the structural component.