class documentation

Parser for fiftyone.core.sample.Sample instances that contain unlabeled media.

Parameters
compute_metadatawhether to compute fiftyone.core.metadata.Metadata instances on-the-fly if get_metadata is called and no metadata is available
Method __init__ Undocumented
Method get_media_path Returns the media path for the current sample.
Method get_metadata Returns the metadata for the current sample.
Instance Variable compute_metadata Undocumented
Property has_metadata Whether this parser produces fiftyone.core.metadata.Metadata instances for samples that it parses.

Inherited from SampleParser (via MediaSampleParser, UnlabeledMediaSampleParser):

Method clear_sample Clears the current sample.
Method with_sample Sets the current sample so that subsequent calls to methods of this parser will return information from the given sample.
Property current_sample The current sample.
Instance Variable _current_sample Undocumented
def __init__(self, compute_metadata=False): (source)
def get_media_path(self): (source)

Returns the media path for the current sample.

Returns
the path to the media on disk
def get_metadata(self): (source)

Returns the metadata for the current sample.

Returns
a fiftyone.core.metadata.Metadata instance
compute_metadata: False = (source)

Undocumented

@property
has_metadata = (source)

Whether this parser produces fiftyone.core.metadata.Metadata instances for samples that it parses.