class documentation
class FiftyOneUnlabeledVideoSampleParser(ExtractClipsMixin, UnlabeledVideoSampleParser): (source)
Constructor: FiftyOneUnlabeledVideoSampleParser(compute_metadata, write_clips, clip_dir, video_format)
Parser for fiftyone.core.sample.Sample
instances that contain
videos.
This class also supports fiftyone.core.clips.ClipView
instances.
Parameters | |
compute | whether to compute
fiftyone.core.metadata.VideoMetadata instances on-the-fly
if get_video_metadata is called and no metadata is
available |
write | whether to write clips when get_video_path
is called |
clip | a directory to write clips. Only applicable when
parsing fiftyone.core.clips.ClipView instances |
video | the video format to use when writing video clips to disk. By default, fiftyone.config.default_video_ext is used |
Method | __init__ |
Undocumented |
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 ExtractClipsMixin
:
Method | _get |
Undocumented |
Method | _get |
Undocumented |
Instance Variable | _curr |
Undocumented |
Inherited from SampleParser
(via ExtractClipsMixin
, UnlabeledVideoSampleParser
):
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 |
def __init__(self, compute_metadata=False, write_clips=True, clip_dir=None, video_format=None):
(source)
¶
Undocumented
Returns the video metadata for the current sample.
Returns | |
a fiftyone.core.metadata.VideoMetadata instance |
Whether this parser produces
fiftyone.core.metadata.VideoMetadata
instances for samples
that it parses.