File tree 4 files changed +12
-20
lines changed
label_studio/annotation_templates/videos
video-timeline-segmentation
4 files changed +12
-20
lines changed Original file line number Diff line number Diff line change 1
1
<View >
2
- <HyperText name =" video" value =" $video" />
2
+ <Video name =" video" value =" $video" />
3
3
<Choices name =" choice" toName =" video" showInLine =" true" >
4
4
<Choice value =" Blurry" />
5
5
<Choice value =" Sharp" />
6
6
</Choices >
7
7
</View >
8
8
9
9
<!-- {"data": {
10
- "video": "<video src='static/samples/opossum_snow.mp4' width=100% controls>",
11
- "videoSource": "/static/samples/opossum_snow.mp4"
10
+ "video": "/static/samples/opossum_snow.mp4"
12
11
},
13
12
"predictions": [{"result":
14
13
[
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ image: /static/templates/video-classification.png
5
5
details : <h1>Classify video</h1>
6
6
config : |
7
7
<View>
8
- <HyperText name="video" value="$video"/>
8
+ <Video name="video" value="$video"/>
9
9
<Choices name="choice" toName="video" showInLine="true">
10
10
<Choice value="Blurry" />
11
11
<Choice value="Sharp" />
@@ -15,8 +15,7 @@ config: |
15
15
<!-- {
16
16
17
17
"data": {
18
- "video": "<video src='static/samples/opossum_snow.mp4' width=100% controls>",
19
- "videoSource": "/static/samples/opossum_snow.mp4"
18
+ "video": "/static/samples/opossum_snow.mp4"
20
19
},
21
20
22
21
"annotations": [{"result":
Original file line number Diff line number Diff line change 1
1
<View >
2
2
<Header value =" Video timeline segmentation via AudioPlus sync trick" />
3
- <HyperText name =" video" value =" $video" />
3
+ <Video name =" video" value =" $video" sync = " audio " />
4
4
<Labels name =" tricks" toName =" audio" choice =" multiple" >
5
5
<Label value =" Kickflip" background =" #1BB500" />
6
6
<Label value =" 360 Flip" background =" #FFA91D" />
7
7
<Label value =" Trick" background =" #358EF3" />
8
8
</Labels >
9
- <AudioPlus name =" audio" value =" $videoSource " speed =" false" />
9
+ <AudioPlus name =" audio" value =" $video " sync = " video " speed =" false" />
10
10
</View >
11
11
12
12
<!--
13
- It's very important to prepare task data correctly,
14
- it includes HyperText $video and
15
- it must be like this example below:
13
+ Audio tag uses the same $video file to be in sync, video is muted
16
14
-->
17
15
18
16
<!-- {
19
- "video": "<video src='/static/samples/opossum_snow.mp4' width=100% muted/><img src onerror=\"$=n=>document.querySelector(n);a=$('.ls-editor audio');v=$('video');a.onseeked=()=>{v.currentTime=a.currentTime};a.onplay=()=>v.play();a.onpause=()=>v.pause()\" />",
20
- "videoSource": "/static/samples/opossum_snow.mp4"
17
+ "video": "/static/samples/opossum_snow.mp4"
21
18
} -->
Original file line number Diff line number Diff line change @@ -6,23 +6,20 @@ details: <h1>Select and classify video segments</h1>
6
6
config : |
7
7
<View>
8
8
<Header value="Video timeline segmentation via AudioPlus sync trick"/>
9
- <HyperText name="video" value="$video"/>
9
+ <Video name="video" value="$video" sync="audio "/>
10
10
<Labels name="tricks" toName="audio" choice="multiple">
11
11
<Label value="Kickflip" background="#1BB500" />
12
12
<Label value="360 Flip" background="#FFA91D" />
13
13
<Label value="Trick" background="#358EF3" />
14
14
</Labels>
15
- <AudioPlus name="audio" value="$videoSource " speed="false"/>
15
+ <AudioPlus name="audio" value="$video" sync="video " speed="false"/>
16
16
</View>
17
17
18
18
<!--
19
- It's very important to prepare task data correctly,
20
- it includes HyperText $video and
21
- it must be like this example below:
19
+ Audio tag uses the same $video file to be in sync, video is muted
22
20
-->
23
21
24
22
<!-- {
25
- "video": "<video src='/static/samples/opossum_snow.mp4' width=100% muted/><img src onerror=\"$=n=>document.querySelector(n);a=$('.ls-editor audio');v=$('video');a.onseeked=()=>{v.currentTime=a.currentTime};a.onplay=()=>v.play();a.onpause=()=>v.pause()\" />",
26
- "videoSource": "/static/samples/opossum_snow.mp4"
23
+ "video": "/static/samples/opossum_snow.mp4"
27
24
} -->
28
25
You can’t perform that action at this time.
0 commit comments