Rectangle

Properties


Methods

update

update(
   x: Optional[int] = None, y: Optional[int] = None, w: Optional[int] = None,
   h: Optional[int] = None, label: Optional[Label] = None
)

Description

Update this rectangle with new coordinates or new label.

Examples

rect.update(x=10, label=label_car)

Arguments

  • x (int, optional) : New x coordinate of this rectangle. Defaults to None.

  • y (int, optional) : New y coordinate of this rectangle. Defaults to None.

  • w (int, optional) : New width of this rectangle. Defaults to None.

  • h (int, optional) : New height of this rectangle. Defaults to None.

  • label (Label, optional) : New label of this rectangle. Defaults to None.


delete

delete()

Description

Delete this rectangle from the platform.

:warning: DANGER ZONE: Be very careful here!

Examples

rect.delete()