|
|
|
|
@ -398,8 +398,9 @@ def dump_as_cvat_interpolation(file_object, annotations):
|
|
|
|
|
z_order=shape.z_order,
|
|
|
|
|
frame=shape.frame,
|
|
|
|
|
attributes=shape.attributes,
|
|
|
|
|
),
|
|
|
|
|
annotations.TrackedShape(
|
|
|
|
|
)] +
|
|
|
|
|
( # add a finishing frame if it does not hop over the last frame
|
|
|
|
|
[annotations.TrackedShape(
|
|
|
|
|
type=shape.type,
|
|
|
|
|
points=shape.points,
|
|
|
|
|
occluded=shape.occluded,
|
|
|
|
|
@ -408,8 +409,10 @@ def dump_as_cvat_interpolation(file_object, annotations):
|
|
|
|
|
z_order=shape.z_order,
|
|
|
|
|
frame=shape.frame + annotations.frame_step,
|
|
|
|
|
attributes=shape.attributes,
|
|
|
|
|
)] if shape.frame + annotations.frame_step < \
|
|
|
|
|
int(annotations.meta['task']['stop_frame']) \
|
|
|
|
|
else []
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
))
|
|
|
|
|
counter += 1
|
|
|
|
|
|
|
|
|
|
|