flair.data.BoundingBox#

class flair.data.BoundingBox(left: str, top: int, right: int, bottom: int)View on GitHub#

Bases: NamedTuple

Represents a bounding box with left, top, right, and bottom coordinates.

__init__()#

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

bottom

Alias for field number 3

left

Alias for field number 0

right

Alias for field number 2

top

Alias for field number 1

left: str#

Alias for field number 0

top: int#

Alias for field number 1

right: int#

Alias for field number 2

bottom: int#

Alias for field number 3