class documentation

An OpenLABEL stream corresponding to one uri or file_id.

Parameters
namethe name of the stream
typethe type of the stream
descriptiona string description for this stream
propertiesa dict of properties for this stream
urithe uri or file_id of the media corresponding to this stream
other_attrsa dictionary of other attributes corresponding to this stream
Class Method from_anno_dict Create an OpenLABEL stream from the stream information dictionary.
Method __init__ Undocumented
Method get_frame_numbers Get frame numbers corresponding to the given uri.
Method update_dict Updates this stream with additional information.
Instance Variable frame_streams Undocumented
Instance Variable height Undocumented
Instance Variable name Undocumented
Instance Variable other_attrs Undocumented
Instance Variable properties Undocumented
Instance Variable type Undocumented
Instance Variable width Undocumented
Property uris Get uris corresponding to any stream in this collection.
Class Method _parse_stream_dict Undocumented
Method _check_height_width Undocumented
Method _parse_properties_dict Undocumented
Constant _HEIGHT_KEYS Undocumented
Constant _URI_KEYS Undocumented
Constant _WIDTH_KEYS Undocumented
Instance Variable _uris Undocumented
@classmethod
def from_anno_dict(cls, stream_name, d, frame_number): (source)

Create an OpenLABEL stream from the stream information dictionary.

Parameters
stream_namethe name of the stream
da dict containing information about this stream
frame_numberthe frame number from which this stream information dict was parsed, 'None' if from the top-level streams
Returns
An OpenLABELStream
def __init__(self, name, type=None, properties=None, uris=None, other_attrs=None): (source)

Undocumented

def get_frame_numbers(self, uri): (source)

Get frame numbers corresponding to the given uri.

def update_dict(self, d, frame_number=None): (source)

Updates this stream with additional information.

Parameters
da dict containing additional stream information
frame_number:Nonethe frame number from which this stream information dict was parsed, 'None' if from the top-level streams
frame_streams: dict = (source)

Undocumented

Undocumented

Undocumented

other_attrs: None = (source)

Undocumented

properties: None = (source)

Undocumented

Undocumented

Undocumented

Get uris corresponding to any stream in this collection.

@classmethod
def _parse_stream_dict(cls, d): (source)

Undocumented

def _check_height_width(self, key, value): (source)

Undocumented

def _parse_properties_dict(self, d): (source)

Undocumented

_HEIGHT_KEYS: list[str] = (source)

Undocumented

Value
['height', 'height_px']
_URI_KEYS: list[str] = (source)

Undocumented

Value
['uri']
_WIDTH_KEYS: list[str] = (source)

Undocumented

Value
['width', 'width_px']

Undocumented