class documentation
class UnlabeledMediaSampleParser(SampleParser): (source)
Known subclasses: fiftyone.utils.data.parsers.MediaSampleParser
Interface for SampleParser
instances that parse unlabeled
media samples.
The general recipe for using UnlabeledMediaSampleParser
instances
is as follows:
sample_parser = UnlabeledMediaSampleParser(...) for sample in samples: sample_parser.with_sample(sample) filepath = sample_parser.get_media_path() metadata = sample_parser.get_metadata()
Method | get |
Returns the media path for the current sample. |
Method | get |
Returns the metadata for the current sample. |
Property | has |
Whether this parser produces fiftyone.core.metadata.Metadata 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 |
overridden in
fiftyone.utils.data.parsers.MediaSampleParser
Returns the media path for the current sample.
Returns | |
the path to the media on disk |
overridden in
fiftyone.utils.data.parsers.MediaSampleParser
Whether this parser produces
fiftyone.core.metadata.Metadata
instances for samples that it
parses.