yxyx_to_albu#

yxyx_to_albu(yxyx: ndarray, img_size: Tuple[PositiveInt, PositiveInt]) ndarray[source]#

Unnormalized [ymin, xmin, ymax, xmax] to Albumentations format i.e. normalized [ymin, xmin, ymax, xmax].

Parameters
  • yxyx (ndarray) –

  • img_size (Tuple[PositiveInt, PositiveInt]) –

Return type

ndarray