Class TextAnnotation (0.38.1)

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.

UTF-8 text detected on the pages.


builtins.object > google.protobuf.pyext._message.CMessage > builtins.object > google.protobuf.message.Message > TextAnnotation



Detected start or end of a structural component.

True if break prepends the element.


Detected language for a structural component.

Confidence of detected language. Range [0, 1].


Additional information detected on the structural component.

Detected start or end of a text segment.