class documentation
class FiftyOneVideoLabelsSampleParser(VideoLabelsSampleParser): (source)
Constructor: FiftyOneVideoLabelsSampleParser(prefix, labels_dict, frame_labels_dict, multilabel, skip_non_categorical)
Parser for samples in FiftyOne video labels datasets.
See :ref:`this page <FiftyOneVideoLabelsDataset-import>` for format details.
Parameters | |
expand | whether to expand the labels for each frame into
separate fiftyone.core.labels.Label instances |
prefix | a string prefix to prepend to each label name in the expanded frame label dictionaries |
labels | a dictionary mapping names of attributes/objects in the frame labels to field names into which to expand them |
multilabel | whether to store attributes in a single
fiftyone.core.labels.Classifications instance |
skip | whether to skip non-categorical attributes (True) or cast them to strings (False) |
Inherited from VideoLabelsSampleParser
:
Method | __init__ |
Undocumented |
Method | clear |
Clears the current sample. |
Method | get |
Returns the frame labels for the current sample. |
Method | get |
Returns the sample-level labels for the current sample. |
Method | get |
Returns the video path for the current sample. |
Instance Variable | frame |
Undocumented |
Property | frame |
The fiftyone.core.labels.Label class(es) returned by this parser within the frame labels that it produces. |
Property | has |
Whether this parser produces fiftyone.core.metadata.VideoMetadata instances for samples that it parses. |
Property | label |
The fiftyone.core.labels.Label class(es) returned by this parser within the sample-level labels that it produces. |
Method | _parse |
Undocumented |
Instance Variable | _curr |
Undocumented |
Instance Variable | _curr |
Undocumented |
Inherited from LabeledVideoSampleParser
(via VideoLabelsSampleParser
):
Method | get |
Returns the video metadata for the current sample. |
Inherited from SampleParser
(via VideoLabelsSampleParser
, LabeledVideoSampleParser
):
Method | with |
Sets the current sample so that subsequent calls to methods of this parser will return information from the given sample. |
Property | current |
The current sample. |
Instance Variable | _current |
Undocumented |