---
title: Image Classification
type: templates
category: Computer Vision
cat: computer-vision
order: 135
meta_title: Image Classification Data Labeling Template

If you want to train a model to identify the type of content in images, for example for a content moderation use case, use this template to perform image classification with checkboxes.
<View>
<Image name="image" value="$image"/>
<Choices name="choice" toName="image">
<Choice value="Adult content"/>
<Choice value="Weapons" />
<Choice value="Violence" />
</Choices>
</View>
All labeling configurations must be wrapped in View tags.
Use the Image object tag to specify the image to classify:xml <Image name="image" value="$image"/>
Use the Choices control tag to display the choices available to classify the image:xml <Choices name="choice" toName="image"> <Choice value="Adult content"/> <Choice value="Weapons" /> <Choice value="Violence" /> </Choices>
You can modify the values of the Choice tag to provide different classification options. Review the available arguments for the Choices tag for customization options.
You can enhance this template in many ways.
If you want the classification choices to appear to the left of the image, you can add styling to the View tag.
<View style="display: flex;">
<View style="padding: 0em 1em; background: #f1f1f1; margin-right: 1em; border-radius: 3px">
<View style="position: sticky; top: 0">
<Choices name="choice" toName="image">
<Choice value="Adult content"/>
<Choice value="Weapons" />
<Choice value="Violence" />
</Choices>
</View>
</View>
<View>
<Image name="image" value="$image"/>
</View>
</View>
{% insertmd includes/nested-classification.md %}