Class Page

A page in a Document.

Attributes
NameDescription
intpage_number
1-based index for current Page in a parent Document. Useful when a page is taken out of a Document for individual processing.
google.cloud.documentai_v1.types.Document.Page.Imageimage
Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned.
Sequence[google.cloud.documentai_v1.types.Document.Page.Matrix]transforms
Transformation matrices that were applied to the original document image to produce Page.image.
google.cloud.documentai_v1.types.Document.Page.Dimensiondimension
Physical dimension of the page.
google.cloud.documentai_v1.types.Document.Page.Layoutlayout
Layout for the page.
Sequence[google.cloud.documentai_v1.types.Document.Page.DetectedLanguage]detected_languages
A list of detected languages together with confidence.
Sequence[google.cloud.documentai_v1.types.Document.Page.Block]blocks
A list of visually detected text blocks on the page. A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.
Sequence[google.cloud.documentai_v1.types.Document.Page.Paragraph]paragraphs
A list of visually detected text paragraphs on the page. A collection of lines that a human would perceive as a paragraph.
Sequence[google.cloud.documentai_v1.types.Document.Page.Line]lines
A list of visually detected text lines on the page. A collection of tokens that a human would perceive as a line.
Sequence[google.cloud.documentai_v1.types.Document.Page.Token]tokens
A list of visually detected tokens on the page.
Sequence[google.cloud.documentai_v1.types.Document.Page.VisualElement]visual_elements
A list of detected non-text visual elements e.g. checkbox, signature etc. on the page.
Sequence[google.cloud.documentai_v1.types.Document.Page.Table]tables
A list of visually detected tables on the page.
Sequence[google.cloud.documentai_v1.types.Document.Page.FormField]form_fields
A list of visually detected form fields on the page.
google.cloud.documentai_v1.types.Document.Provenanceprovenance
The history of this page.

Inheritance

builtins.object > proto.message.Message > Page

Classes

Block

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

A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.

DetectedLanguage

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

Detected language for a structural component.

Dimension

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

Dimension for the page.

FormField

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

A form field detected on the page.

Image

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

Rendered image contents for this page.

Layout

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

Visual element describing a layout unit on a page.

Line

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

A collection of tokens that a human would perceive as a line. Does not cross column boundaries, can be horizontal, vertical, etc.

Matrix

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

Representation for transformation matrix, intended to be compatible and used with OpenCV format for image manipulation.

Paragraph

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

A collection of lines that a human would perceive as a paragraph.

Table

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

A table representation similar to HTML table structure.

Token

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

A detected token.

VisualElement

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

Detected non-text visual elements e.g. checkbox, signature etc. on the page.