Skip to content

Commit 15cb6fc

Browse files
authored
Merge pull request #607 from superannotateai/392_per_frame
Issue fix
2 parents b72137d + f467ae2 commit 15cb6fc

File tree

5 files changed

+572
-2
lines changed

5 files changed

+572
-2
lines changed

src/superannotate/lib/core/video_convertor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def _process(self):
241241
key = set(frames_mapping.keys()).pop()
242242
median = self.get_median(frames_mapping[key])
243243

244-
interpolated_frames[1] = Annotation(
244+
interpolated_frames[key] = Annotation(
245245
instanceId=instance_id,
246246
type=annotation_type,
247247
className=class_name,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
url,name
2-
https://file-examples-com.github.io/uploads/2017/04/file_example_MP4_480_1_5MG.mp4,video.mp4
2+
https://storage.googleapis.com/gtv-videos-bucket/sample/ForBiggerEscapes.mp4,video.mp4
Lines changed: 324 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,324 @@
1+
{
2+
"metadata": {
3+
"name": "5025_9.mp4",
4+
"duration": 5000000,
5+
"width": 1920,
6+
"height": 1080,
7+
"lastAction": {
8+
"timestamp": 1681813520356,
9+
"email": "sa.partner.prp+adm1@gmail.com"
10+
},
11+
"projectId": 128088,
12+
"url": "short/batch_3/5025_9.mp4",
13+
"status": "Completed",
14+
"error": false,
15+
"annotatorEmail": null,
16+
"qaEmail": null
17+
},
18+
"instances": [
19+
{
20+
"meta": {
21+
"type": "polygon",
22+
"classId": 1566620,
23+
"className": "Ball",
24+
"createdBy": {
25+
"email": "sa.partner.prp+2@gmail.com",
26+
"role": "Annotator"
27+
},
28+
"createdAt": "2023-04-06T10:07:55.274Z",
29+
"updatedBy": {
30+
"email": "sa.partner.prp+adm1@gmail.com",
31+
"role": "Admin"
32+
},
33+
"updatedAt": "2023-04-18T10:25:05.287Z",
34+
"start": 2000001,
35+
"end": 4000001
36+
},
37+
"parameters": [
38+
{
39+
"start": 2000001,
40+
"end": 4000001,
41+
"timestamps": [
42+
{
43+
"attributes": [
44+
{
45+
"id": 2692752,
46+
"groupId": 686902,
47+
"name": "1",
48+
"groupName": "id"
49+
},
50+
{
51+
"id": 2692780,
52+
"groupId": 686904,
53+
"name": "true",
54+
"groupName": "ball_blur"
55+
},
56+
{
57+
"id": 2692843,
58+
"groupId": 686915,
59+
"name": "grass",
60+
"groupName": "background"
61+
}
62+
],
63+
"points": [
64+
680.57,
65+
364.6,
66+
673.09,
67+
363.17,
68+
666.72,
69+
364.05,
70+
662.54,
71+
368.89,
72+
662.1,
73+
372.19,
74+
662.21,
75+
375.71,
76+
666.06,
77+
380.44,
78+
671.45,
79+
383.19,
80+
680.9,
81+
382.86,
82+
685.74,
83+
380.66,
84+
687.61,
85+
376.04,
86+
687.5,
87+
370.65,
88+
684.97,
89+
366.47
90+
],
91+
"timestamp": 2000001
92+
},
93+
{
94+
"attributes": [
95+
{
96+
"id": 2692752,
97+
"groupId": 686902,
98+
"name": "1",
99+
"groupName": "id"
100+
},
101+
{
102+
"id": 2692780,
103+
"groupId": 686904,
104+
"name": "true",
105+
"groupName": "ball_blur"
106+
},
107+
{
108+
"id": 2692843,
109+
"groupId": 686915,
110+
"name": "grass",
111+
"groupName": "background"
112+
}
113+
],
114+
"points": [
115+
673.18,
116+
362.78,
117+
665.7,
118+
361.35,
119+
659.33,
120+
362.23,
121+
655.15,
122+
367.07,
123+
654.71,
124+
370.37,
125+
654.82,
126+
373.89,
127+
658.67,
128+
378.62,
129+
664.06,
130+
381.37,
131+
673.51,
132+
381.04,
133+
678.35,
134+
378.84,
135+
680.22,
136+
374.22,
137+
680.11,
138+
368.83,
139+
677.58,
140+
364.65
141+
],
142+
"timestamp": 3000001
143+
},
144+
{
145+
"attributes": [
146+
{
147+
"id": 2692752,
148+
"groupId": 686902,
149+
"name": "1",
150+
"groupName": "id"
151+
},
152+
{
153+
"id": 2692780,
154+
"groupId": 686904,
155+
"name": "true",
156+
"groupName": "ball_blur"
157+
},
158+
{
159+
"id": 2692843,
160+
"groupId": 686915,
161+
"name": "grass",
162+
"groupName": "background"
163+
}
164+
],
165+
"points": [
166+
665.55,
167+
362.2,
168+
658.07,
169+
360.77,
170+
651.7,
171+
361.65,
172+
647.52,
173+
366.49,
174+
647.08,
175+
369.79,
176+
647.89,
177+
373.18,
178+
651.08,
179+
377.14,
180+
656.57,
181+
380.21,
182+
663.5,
183+
379.53,
184+
668.99,
185+
378.19,
186+
671.66,
187+
374.35,
188+
671.96,
189+
369.47,
190+
669.6,
191+
365.11
192+
],
193+
"timestamp": 4000001
194+
}
195+
]
196+
}
197+
]
198+
},
199+
{
200+
"meta": {
201+
"type": "tag",
202+
"classId": 1566629,
203+
"className": "env_condition",
204+
"createdBy": {
205+
"email": "sa.partner.prp+2@gmail.com",
206+
"role": "Annotator"
207+
},
208+
"createdAt": "2023-04-06T10:08:26.320Z",
209+
"updatedBy": {
210+
"email": "sa.partner.prp+2@gmail.com",
211+
"role": "Annotator"
212+
},
213+
"updatedAt": "2023-04-06T10:08:26.320Z",
214+
"attributes": []
215+
}
216+
},
217+
{
218+
"meta": {
219+
"type": "polygon",
220+
"classId": 1566621,
221+
"className": "Occlusion",
222+
"createdBy": {
223+
"email": "sa.partner.prp+adm1@gmail.com",
224+
"role": "Admin"
225+
},
226+
"createdAt": "2023-04-18T10:25:10.356Z",
227+
"updatedBy": {
228+
"email": "sa.partner.prp+adm1@gmail.com",
229+
"role": "Admin"
230+
},
231+
"updatedAt": "2023-04-18T10:25:20.310Z",
232+
"start": 4000001,
233+
"end": 4000002
234+
},
235+
"parameters": [
236+
{
237+
"start": 4000001,
238+
"end": 4000002,
239+
"timestamps": [
240+
{
241+
"attributes": [
242+
{
243+
"id": 2692782,
244+
"groupId": 686905,
245+
"name": "1",
246+
"groupName": "id"
247+
},
248+
{
249+
"id": 2692805,
250+
"groupId": 686909,
251+
"name": "true",
252+
"groupName": "1 frame"
253+
}
254+
],
255+
"points": [
256+
654.26,
257+
357.05,
258+
654.85,
259+
361.75,
260+
651.91,
261+
366.86,
262+
651.41,
263+
370.38,
264+
652.58,
265+
371.47,
266+
655.68,
267+
370.29,
268+
659.04,
269+
365.18,
270+
662.39,
271+
361.41,
272+
662.39,
273+
358.9,
274+
661.13,
275+
357.56
276+
],
277+
"timestamp": 4000001
278+
},
279+
{
280+
"attributes": [
281+
{
282+
"id": 2692782,
283+
"groupId": 686905,
284+
"name": "1",
285+
"groupName": "id"
286+
},
287+
{
288+
"id": 2692805,
289+
"groupId": 686909,
290+
"name": "true",
291+
"groupName": "1 frame"
292+
}
293+
],
294+
"points": [
295+
654.26,
296+
357.05,
297+
654.85,
298+
361.75,
299+
651.91,
300+
366.86,
301+
651.41,
302+
370.38,
303+
652.58,
304+
371.47,
305+
655.68,
306+
370.29,
307+
659.04,
308+
365.18,
309+
662.39,
310+
361.41,
311+
662.39,
312+
358.9,
313+
661.13,
314+
357.56
315+
],
316+
"timestamp": 4000002
317+
}
318+
]
319+
}
320+
]
321+
}
322+
],
323+
"tags": []
324+
}

0 commit comments

Comments
 (0)