视频分类
如果你想构建一个视频分类机器学习模型,例如用于内容审核或训练用例,你需要一个相关的已分类视频数据集。使用此模板对视频进行分类。
您可以使用HyperText标签或Video标签构建视频分类器。
交互式模板预览
标注配置
使用视频标签:
<View>
<Video name="video" value="$video"/>
<Choices name="choice" toName="video" showInline="true">
<Choice value="Blurry" />
<Choice value="Sharp" />
</Choices>
</View>
关于标注配置
所有标注配置必须包含在View标签内。
使用Video对象标签在Label Studio Enterprise中显示视频片段:
<Video name="video" value="$video"/>
使用Choices控制标签为标注人员提供分类选项:
<Choices name="choice" toName="video" showInline="true">
<Choice value="Blurry" />
<Choice value="Sharp" />
</Choices>
标注配置
使用超文本标签:
<View>
<Choices name="type" toName="video" choice="single-radio">
<Choice value="Motion"></Choice>
<Choice value="Stable"></Choice>
</Choices>
<HyperText name="video" value="$html"></HyperText>
</View>
<!-- { "html": "<embed src='https://www.youtube.com/embed/mf9TKj0NuTQ'></embed>" } -->
关于标注配置
所有标注配置必须包含在View标签内。
使用Choices控制标签为标注者提供一个单一选项来对视频进行分类:
<Choices name="type" toName="video" choice="single-radio">
<Choice value="Motion"></Choice>
<Choice value="Stable"></Choice>
</Choices>
使用 HyperText 标签在 Label Studio 中向标注人员展示视频片段:
<HyperText name="video" value="$html"></HyperText>
输入数据
To use the labeling configuration with HyperText tags, prepare input data like the following example using the HTML video tag:
[
{ "html": "<video src='examples.com/1.mp4'>" },
{ "html": "<video src='examples.com/2.mp4'>" }
]
您也可以嵌入网络上的视频:
[
{ "html": "<embed src='https://www.youtube.com/embed/mf9TKj0NuTQ'></embed>" }
]
Read more about the HTML video tag on the W3 Schools website.