From 81163e5051308cd06a0104a5a0bafc593b08b38c Mon Sep 17 00:00:00 2001 From: VavoTK Date: Thu, 30 Jun 2022 14:58:53 +0400 Subject: [PATCH] fixing interpolation for event type --- src/superannotate/lib/core/video_convertor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/superannotate/lib/core/video_convertor.py b/src/superannotate/lib/core/video_convertor.py index cf066c67c..b8397cddb 100644 --- a/src/superannotate/lib/core/video_convertor.py +++ b/src/superannotate/lib/core/video_convertor.py @@ -76,7 +76,7 @@ def _interpolate( "x": round(data["x"] + steps["x"] * idx, 2), "y": round(data["y"] + steps["y"] * idx, 2), } - else: + elif annotation_type != AnnotationTypes.EVENT: tmp_data["points"] = data["points"] annotations[frame_idx] = Annotation(