class documentation

A set of keypoints in CVAT video format.

Parameters
framethe 0-based frame number
labelthe keypoints label string
pointsa list of (x, y) pixel coordinates defining the keypoints
outsidewhether the keypoints is outside (invisible)
occludedwhether the keypoints are occluded
keyframewhether the frame is a keyframe
attributesa list of CVATAttribute instances
Class Method from_keypoint Creates a CVATVideoPoints from a fiftyone.core.labels.Keypoint.
Class Method from_points_dict Creates a CVATVideoPoints from a <points> tag of a CVAT video annotation XML file.
Method __init__ Undocumented
Method to_keypoint Returns a fiftyone.core.labels.Keypoint representation of the points.
Instance Variable frame Undocumented
Instance Variable label Undocumented

Inherited from CVATVideoAnno:

Static Method _parse_anno_dict Undocumented
Static Method _parse_attributes Undocumented
Method _to_attributes Undocumented

Inherited from HasCVATPoints (via CVATVideoAnno):

Instance Variable points a list of (x, y) pixel coordinates defining points
Property points_str Undocumented
Static Method _parse_cvat_points_str Undocumented
Static Method _to_abs_points Undocumented
Static Method _to_cvat_points_str Undocumented
Static Method _to_rel_points Undocumented
@classmethod
def from_keypoint(cls, frame_number, keypoint, frame_size): (source)

Creates a CVATVideoPoints from a fiftyone.core.labels.Keypoint.

Parameters
frame_numberthe frame number
keypointa fiftyone.core.labels.Keypoint
frame_sizethe (width, height) of the video frames
Returns
a CVATVideoPoints
@classmethod
def from_points_dict(cls, label, d): (source)

Creates a CVATVideoPoints from a <points> tag of a CVAT video annotation XML file.

Parameters
labelthe object label
da dict representation of a <points> tag
Returns
a CVATVideoPoints
def __init__(self, frame, label, points, outside=None, occluded=None, keyframe=None, attributes=None): (source)
def to_keypoint(self, frame_size): (source)

Returns a fiftyone.core.labels.Keypoint representation of the points.

Parameters
frame_sizethe (width, height) of the video frames
Returns
a fiftyone.core.labels.Keypoint

Undocumented

Undocumented