module documentation

Sample media utilities.

Copyright 2017-2025, Voxel51, Inc.

Exception MediaTypeError Exception raised when a problem with media types is encountered.
Exception SelectGroupSlicesError Exception raised when a grouped collection is passed to a method that expects a primitive media type to be selected.
Function get_media_type Gets the media type for the given filepath.
Constant GROUP Undocumented
Constant IMAGE Undocumented
Constant MEDIA_TYPES Undocumented
Constant MIXED Undocumented
Constant POINT_CLOUD Undocumented
Constant THREE_D Undocumented
Constant VIDEO Undocumented
def get_media_type(filepath): (source)

Gets the media type for the given filepath.

Parameters
filepatha filepath
Returns
the media type

Undocumented

Value
'group'

Undocumented

Value
'image'
MEDIA_TYPES = (source)

Undocumented

Value
set([IMAGE, VIDEO, POINT_CLOUD, THREE_D])

Undocumented

Value
'mixed'
POINT_CLOUD: str = (source)

Undocumented

Value
'point-cloud'

Undocumented

Value
'3d'

Undocumented

Value
'video'