BoundingRegion Class

The bounding region corresponding to a page.

Inheritance
builtins.object
BoundingRegion

Constructor

BoundingRegion(**kwargs: Any)

Methods

from_dict

Converts a dict in the shape of a BoundingRegion to the model itself.

to_dict

Returns a dict representation of BoundingRegion.

from_dict

Converts a dict in the shape of a BoundingRegion to the model itself.

from_dict(data: Dict) -> BoundingRegion

Parameters

Name Description
data
Required

A dictionary in the shape of BoundingRegion.

Returns

Type Description

BoundingRegion

to_dict

Returns a dict representation of BoundingRegion.

to_dict() -> Dict

Returns

Type Description

dict

Attributes

page_number

The 1-based number of the page in which this content is present.

page_number: int

polygon

A list of points representing the bounding polygon that outlines the document component. The points are listed in clockwise order relative to the document component orientation starting from the top-left. Units are in pixels for images and inches for PDF.

polygon: Sequence[Point]