|
|
|
@ -398,6 +398,7 @@ def load(file_object, annotations):
|
|
|
|
shape['points'].extend(map(float, pair.split(',')))
|
|
|
|
shape['points'].extend(map(float, pair.split(',')))
|
|
|
|
|
|
|
|
|
|
|
|
if track is not None:
|
|
|
|
if track is not None:
|
|
|
|
|
|
|
|
if shape["keyframe"]:
|
|
|
|
track.shapes.append(annotations.TrackedShape(**shape))
|
|
|
|
track.shapes.append(annotations.TrackedShape(**shape))
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
annotations.add_shape(annotations.LabeledShape(**shape))
|
|
|
|
annotations.add_shape(annotations.LabeledShape(**shape))
|
|
|
|
|