Skip to content

Box

Box #

Box(x_min: float, y_min: float, x_max: float, y_max: float)

Used in the Locate and Draw Validation sets. All coordinates are in pixels.

Parameters:

Name Type Description Default
x_min float

The minimum x value of the box.

required
y_min float

The minimum y value of the box.

required
x_max float

The maximum x value of the box.

required
y_max float

The maximum y value of the box.

required
Source code in src/rapidata/rapidata_client/validation/rapids/box.py
def __init__(self, x_min: float, y_min: float, x_max: float, y_max: float):
    self.x_min = x_min
    self.y_min = y_min
    self.x_max = x_max
    self.y_max = y_max