otx.api.entities.media#

This module implements the Media entity.

Classes

IMedia2DEntity()

This interface is used to represent IMedia which is 2-dimensional media, i.e., containing height and width.

IMediaEntity()

Media entity interface.

class otx.api.entities.media.IMedia2DEntity[source]#

Bases: IMediaEntity

This interface is used to represent IMedia which is 2-dimensional media, i.e., containing height and width.

abstract roi_numpy(roi: Annotation | None) ndarray[source]#

Returns the numpy representation of the 2D Media object while taking the roi into account.

abstract property height: int#

Returns the height of the 2D Media object.

abstract property numpy: ndarray#

Returns the numpy representation of the 2D Media object.

property path: str | None#

Returns the path of the 2D Media object.

abstract property width: int#

Returns the width representation of the 2D Media object.

class otx.api.entities.media.IMediaEntity[source]#

Bases: object

Media entity interface.

This interface is used to represent any kind of media data, on which users can annotate and tasks can perform training/analysis.