logofirst
logofirst GitHub

Video Classifier

You can build simple video classifier using HyperText tag.

Input data

You need to prepare input data like this, read more about HTML video tag
here:

[
 { "html": "<video src='examples.com/1.mp4'>" },
 { "html": "<video src='examples.com/2.mp4'>" }
]

Or you can even use embeds from Youtube:

[
 { "html": "<iframe src='https://www.youtube.com/embed/mf9TKj0NuTQ'></iframe>" }
]

Config

<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": "<iframe src='https://www.youtube.com/embed/mf9TKj0NuTQ'></iframe>" } -->

Note: preview for this config uses another sample input data, so it won’t display the proper task with the video.