class documentation
class OpenLABELStreams(OpenLABELGroup): (source)
A collection of OpenLABEL streams.
Method | __init__ |
Undocumented |
Method | get |
Get the width and height of a given URI or file id. |
Method | get |
Get all stream infos, including stream and relevant frame numbers, for a given media file identifier. |
Method | parse |
Parses the OpenLABEL annotations corresponding to a specific dictionary of streams. |
Property | uris |
All unique media file identifiers corresponding to streams in this collection. |
Method | _add |
Parses the given raw stream dictionary. |
Instance Variable | _uri |
Undocumented |
Property | _element |
Undocumented |
Inherited from OpenLABELGroup
:
Class Method | _get |
Undocumented |
Class Method | _get |
Undocumented |
Method | _add |
Parses the given raw stream dictionary. |
Method | _parse |
Undocumented |
Instance Variable | _element |
Undocumented |
Instance Variable | _keys |
Undocumented |
Get the width and height of a given URI or file id.
Parameters | |
uri | Undocumented |
file | the unique identifier to a media file |
Returns | |
the (width, height) of the given file |
Get all stream infos, including stream and relevant frame numbers, for a given media file identifier.
Parameters | |
uri | the unique media file identifier for which to get all stream infos |
Returns | |
the OpenLABELStreamInfos corresponding to the given uri |
Parses the OpenLABEL annotations corresponding to a specific dictionary of streams.
Parameters | |
streams | the dict of OpenLABEL stream annotations |
label | the name of the annotations file containing these streams |
frameNone | an optional frame that this streams_dict is in |
Parses the given raw stream dictionary.
Parameters | |
label | the filename of the annotations file from which these labels are parsed |
stream | the name of the stream being parsed |
stream | a dict containing stream information to parse |
frameNone | the frame number from which this stream information dict was parsed, 'None' if from the top-level streams |