module documentation
FiftyOne Server JIT metadata utilities
Class |
|
Undocumented |
Class |
|
Asynchronous file-like reader. |
Exception |
|
Exception raised when FFmpeg or FFprobe cannot be found. |
Exception |
|
Exception raised when metadata for a media file cannot be computed. |
Async Function | get |
Gets the dimensions of an image from its file-like asynchronous byte stream. |
Async Function | get |
Gets the metadata for the given local media file. |
Async Function | get |
Returns a eta.core.video.VideoStreamInfo instance for the provided video path. |
Async Function | read |
Calculates the metadata for the given local media path. |
Variable | logger |
Undocumented |
Function | _create |
Undocumented |
Function | _get |
Undocumented |
Constant | _ADDITIONAL |
Undocumented |
Constant | _FFPROBE |
Undocumented |
Gets the dimensions of an image from its file-like asynchronous byte stream.
Parameters | |
input | file-like object with async read and seek methods |
Returns | |
the (width, height) |
async def get_metadata(collection:
SampleCollection
, sample: dict
, media_type: str
, metadata_cache: dict[ str, dict[ str, str]]
, url_cache: dict[ str, str]
):
(source)
¶
Gets the metadata for the given local media file.
Parameters | |
collection:SampleCollection | Undocumented |
sample:dict | Undocumented |
mediastr | the file's media type |
metadatadict[ | Undocumented |
urldict[ | Undocumented |
metadata:None | a pre-existing metadata dict to use if possible |
filepath | the path to the file |
Returns | |
metadata dict |
Returns a eta.core.video.VideoStreamInfo
instance for the
provided video path.
Parameters | |
path | a video filepath |
Returns | |
a eta.core.video.VideoStreamInfo |
Calculates the metadata for the given local media path.
Parameters | |
filepath | a filepath |
is | whether the file is a video |
Returns | |
dict |
def _create_media_urls(collection:
SampleCollection
, sample: dict
, sample_media_type: str
, cache: dict
, additional_fields: list[ str] | None
= None, opm_field: str | None
= None, detections_fields: list[ str] | None
= None) -> dict[ str, str]
:
(source)
¶
Undocumented
Undocumented
Value |
|