Don't save shapes with keyframe==False

main
Boris Sekachev 6 years ago
parent acdc7bb827
commit 8253b7155e

@ -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))

Loading…
Cancel
Save