# Class TextAnnotation (3.15.0)

3.15.0 (latest) 3.14.0 3.13.0 3.12.1 3.11.0 3.10.2 3.9.0 3.8.1 3.7.4 3.6.0 3.5.0 3.4.5 3.3.1 3.2.0 3.1.4 3.0.0 2.8.0 2.7.3 2.6.3 2.5.0 2.4.4 2.3.2 2.2.0 2.1.0 2.0.0 1.0.2 0.42.0 0.41.0 0.40.0 0.39.0 0.38.1

    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.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `pages` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/vision/latest/google.cloud.vision_v1p4beta1.types.Page]` List of pages detected by OCR. |
| `text` | `str` UTF-8 text detected on the pages. |

## Classes

### DetectedBreak

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

Detected start or end of a structural component.

### DetectedLanguage

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

Detected language for a structural component.

### TextProperty

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

Additional information detected on the structural component.