class documentation
class ImageSampleParser(UnlabeledImageSampleParser): (source)
Sample parser that parses unlabeled image samples.
This implementation assumes that the provided sample is either an image that can be converted to numpy format via np.asarray() or the path to an image on disk.
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. |
Inherited from UnlabeledImageSampleParser
:
Method | get |
Returns the image metadata for the current sample. |
Inherited from SampleParser
(via UnlabeledImageSampleParser
):
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 |
Whether this parser produces
fiftyone.core.metadata.ImageMetadata
instances for samples
that it parses.