datumaro.plugins.data_formats.arrow.mapper.media#
Classes
- class datumaro.plugins.data_formats.arrow.mapper.media.MediaMapper[source]#
Bases:
Mapper
- class datumaro.plugins.data_formats.arrow.mapper.media.MediaElementMapper[source]#
Bases:
Mapper
- MAGIC_PATH = '/NOT/A/REAL/PATH'#
- MEDIA_TYPE = 1#
- class datumaro.plugins.data_formats.arrow.mapper.media.ImageMapper[source]#
Bases:
MediaElementMapper
- MEDIA_TYPE = 2#
- AVAILABLE_SCHEMES = ('AS-IS', 'PNG', 'TIFF', 'JPEG/95', 'JPEG/75', 'NONE')#
- classmethod forward(obj: Image, encoder: str | Callable[[Image], bytes] = 'PNG') Dict[str, Any] [source]#
Convert an object to bytes.
- class datumaro.plugins.data_formats.arrow.mapper.media.PointCloudMapper[source]#
Bases:
MediaElementMapper
- MEDIA_TYPE = 6#
- B64_PREFIX = '//B64_ENCODED//'#
- classmethod forward(obj: PointCloud, encoder: str | Callable[[PointCloud], bytes] = 'PNG') Dict[str, Any] [source]#
Convert an object to bytes.
- classmethod backward(media_struct: StructScalar, idx: int, table: Table, table_path: str) PointCloud [source]#
Build an object from bytes.