Skip to content

Geometry

Source code in docs_src/capo_textract/types/geometry.py
class Geometry(TypedDict, closed=True):
    bounding_box: NotRequired["capo_textract.types.bounding_box.BoundingBox"]
    """<p>An axis-aligned coarse representation of the location of the recognized item on the document page.</p>"""
    polygon: NotRequired["capo_textract.types.polygon.Polygon"]
    """<p>Within the bounding box, a fine-grained polygon around the recognized item.</p>"""
    rotation_angle: NotRequired["capo_textract.types.angle.Angle"]
    """<p>Provides a numerical value corresponding to the rotation of the WORD block. Possible values are 0, 90, 180, and 270.</p>"""

bounding_box instance-attribute

bounding_box: NotRequired[BoundingBox]

An axis-aligned coarse representation of the location of the recognized item on the document page.

polygon instance-attribute

polygon: NotRequired[Polygon]

Within the bounding box, a fine-grained polygon around the recognized item.

rotation_angle instance-attribute

rotation_angle: NotRequired[Angle]

Provides a numerical value corresponding to the rotation of the WORD block. Possible values are 0, 90, 180, and 270.