class documentation
A temporal detection in a video whose support is defined by a start and end frame.
Parameters | |
label | the label string |
support | the [first, last] frame numbers, inclusive |
confidence | a confidence in [0, 1] for the detection |
Class Method | from |
Creates a TemporalDetection instance from [start, stop] timestamps for the specified video. |
Method | to |
Returns the [start, stop] timestamps, in seconds, for this temporal detection in the given video. |
Class Variable | confidence |
Undocumented |
Class Variable | label |
Undocumented |
Class Variable | support |
Undocumented |
Inherited from _HasID
:
Class Variable | tags |
Undocumented |
Instance Variable | id |
Undocumented |
Method | _id |
Undocumented |
Property | _id |
Undocumented |
Inherited from Label
(via _HasID
):
Method | delete |
Deletes the attribute with the given name. |
Method | get |
Gets the value of the attribute with the given name. |
Method | has |
Determines whether the label has an attribute with the given name. |
Method | iter |
Returns an iterator over the custom attributes of the label. |
Method | set |
Sets the value of the attribute with the given name. |
Creates a TemporalDetection
instance from [start, stop]
timestamps for the specified video.
You must provide either sample or metadata to inform the conversion.
Parameters | |
timestamps | the [start, stop] timestamps, in seconds or "HH:MM:SS.XXX" format |
sample:None | a video fiftyone.core.sample.Sample whose
metadata field is populated |
metadata:None | a fiftyone.core.metadata.VideoMetadata
instance |
**kwargs | additional arguments for TemporalDetection |
Returns | |
a TemporalDetection |
Returns the [start, stop] timestamps, in seconds, for this temporal detection in the given video.
You must provide either sample or metadata to inform the conversion.
Parameters | |
sample:None | a video fiftyone.core.sample.Sample whose
metadata field is populated |
metadata:None | a fiftyone.core.metadata.VideoMetadata
instance |
Returns | |
the [start, stop] timestamps of this detection, in seconds |