class documentation
class UnlabeledVideoSampleParser(SampleParser): (source)
Known subclasses: fiftyone.utils.data.parsers.FiftyOneUnlabeledVideoSampleParser
, fiftyone.utils.data.parsers.VideoSampleParser
Interface for SampleParser
instances that parse unlabeled video
samples.
The general recipe for using UnlabeledVideoSampleParser
instances
is as follows:
sample_parser = UnlabeledVideoSampleParser(...) for sample in samples: sample_parser.with_sample(sample) video_path = sample_parser.get_video_path() video_metadata = sample_parser.get_video_metadata()
Method | get |
Returns the video metadata for the current sample. |
Method | get |
Returns the video path for the current sample. |
Property | has |
Whether this parser produces fiftyone.core.metadata.VideoMetadata instances for samples that it parses. |
Inherited from SampleParser
:
Method | __init__ |
Undocumented |
Method | clear |
Clears the current sample. |
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 |
Returns the video metadata for the current sample.
Returns | |
a fiftyone.core.metadata.VideoMetadata instance |
overridden in
fiftyone.utils.data.parsers.FiftyOneUnlabeledVideoSampleParser
, fiftyone.utils.data.parsers.VideoSampleParser
Returns the video path for the current sample.
Returns | |
the path to the video on disk |
overridden in
fiftyone.utils.data.parsers.FiftyOneUnlabeledVideoSampleParser
, fiftyone.utils.data.parsers.VideoSampleParser
Whether this parser produces
fiftyone.core.metadata.VideoMetadata
instances for samples
that it parses.