--- title: Multi-Image Classification type: templates category: Computer Vision cat: computer-vision order: 140 meta_title: Multi-Image Classification Data Labeling Template meta_description: Template for classifying multiple images at once with Label Studio for your machine learning and data science projects. --- For data labeling cases when you want to classify multiple images at once, or if you want to ask multiple questions about multiple images, you can use this template. ## Interactive Template Preview
## Labeling Configuration ```html
``` ## About the labeling configuration All labeling configurations must be wrapped in [View](/tags/view.html) tags. You can add a [header](/tags/header.html) to provide instructions to the annotator: ```xml
``` Styling with the [View](/tags/view.html) tag sets up the display to allow both images to show side by side: ```xml ``` Then each image is wrapped in its own [View](/tags/view.html) tag to control the display: ```xml ``` Within that first [View](/tags/view.html) tag, the [Image](/tags/image.html) object tag specifies the image to display on the left: ```xml ``` The `value` parameter specifies a JSON key of `"image1"` in the Label Studio JSON task that must be imported with URLs to both images. The [Choices](/tags/choices.html) control tag displays classification options that apply to the image on the left, specified with the `toName` parameter. The `choice` parameter indicates that annotators can select multiple choices: ```xml ``` The [View](/tags/view.html) tag to display the image and relevant choices on the left is closed, then a new [View](/tags/view.html) tag styles the second image and choice selection to appear on the right: ```xml ``` Within this [View](/tags/view.html) tag, the [Image](/tags/image.html) object tag specifies the image to display on the right: ```xml ``` The `value` parameter specifies a JSON key of `"image2"` in the Label Studio JSON task that must be imported with URLs to both images. The [Choices](/tags/choices.html) control tag displays classification options that apply to the image on the right, specified with the `toName` parameter: ```xml ``` Close both [View](/tags/view.html) tags for the image and choice styling, and use a new View tag to separate the remaining overall classification options. You can add a [header](/tags/header.html) to provide instructions to the annotator, and use the Choices control tag to display choices about both images. ```xml
``` The Choices tag `toName` value references `img-left` so that all annotations are tied together in the results. ## Related tags - [Header](/tags/header.html) - [View](/tags/view.html) - [Image](/tags/image.html) - [Choices](/tags/choices.html) ## Related templates - [Image Classification](image_classification.html)