class documentation
class FiftyOneImageLabelsSampleParser(ImageLabelsSampleParser): (source)
Constructor: FiftyOneImageLabelsSampleParser(prefix, labels_dict, multilabel, skip_non_categorical)
Parser for samples in FiftyOne image labels datasets.
See :ref:`this page <FiftyOneImageLabelsDataset-import>` for format details.
Parameters | |
prefix | a string prefix to prepend to each label name in the expanded label dictionary |
labels | a dictionary mapping names of attributes/objects in the image 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 ImageLabelsSampleParser
:
Method | __init__ |
Undocumented |
Method | get |
Returns the label for the current sample. |
Property | label |
The fiftyone.core.labels.Label class(es) returned by this parser. |
Method | _parse |
Undocumented |
Inherited from LabeledImageTupleSampleParser
(via ImageLabelsSampleParser
):
Method | clear |
Clears the current sample. |
Method | get |
Returns the image from the current sample. |
Method | get |
Returns the image path for the current sample. |
Property | has |
Whether this parser produces fiftyone.core.metadata.ImageMetadata instances for samples that it parses. |
Property | has |
Whether this parser produces paths to images on disk for samples that it parses. |
Method | _get |
Undocumented |
Method | _parse |
Undocumented |
Instance Variable | _current |
Undocumented |
Property | _current |
Undocumented |
Inherited from LabeledImageSampleParser
(via ImageLabelsSampleParser
, LabeledImageTupleSampleParser
):
Method | get |
Returns the image metadata for the current sample. |
Inherited from SampleParser
(via ImageLabelsSampleParser
, LabeledImageTupleSampleParser
, LabeledImageSampleParser
):
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 |