Skip to content

Commit 84165ea

Browse files
authored
Merge pull request #471 from superannotateai/1185_video_fix
fix video instance convertor
2 parents 87c414e + 2ca185d commit 84165ea

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/superannotate/lib/core/data_handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def handle(self, annotation: dict):
239239

240240

241241
class VideoFormatHandler(BaseAnnotationDateHandler):
242-
INSTANCE_FIELDS = {"className", "pointLabels", "createdBy", "createdAt", "updatedBy", "updatedAt"}
242+
INSTANCE_FIELDS = {"pointLabels", "createdBy", "createdAt", "updatedBy", "updatedAt"}
243243

244244
@staticmethod
245245
def _point_handler(time_stamp):

tests/integration/annotations/test_video_annotation_upload.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,19 +156,19 @@ def test_video_annotation_converter(self):
156156
},
157157
30.526667: {
158158
'active': False, 'points': {'x1': 182.42, 'y1': 97.19, 'x2': 284.11, 'y2': 195.4}}},
159-
'type': 'bbox', 'locked': False, 'classId': -1, "className": "vid",
159+
'type': 'bbox', 'locked': False, 'classId': -1,
160160
"pointLabels": {
161161
"3": "point label bro"
162162
},
163163
},
164164
{
165165
'attributes': [],
166166
'timeline': {29.713736: {'active': True, 'x': 1, 'y': 2}, 30.526667: {'active': False, 'x': 2, 'y': 3}},
167-
'type': 'point', 'locked': False, 'classId': -1, "className": "vid",
167+
'type': 'point', 'locked': False, 'classId': -1,
168168
},
169169
{
170170
'attributes': [], 'timeline': {5.528212: {'active': True}, 6.702957: {}, 7.083022: {'active': False}},
171-
'type': 'event', 'locked': False, 'classId': -1, "className": "vid",
171+
'type': 'event', 'locked': False, 'classId': -1,
172172
}
173173
],
174174
'tags': ['some tag'], 'name': 'video.mp4',

0 commit comments

Comments
 (0)