---
title: Semantic Segmentation with Polygons
type: templates
category: Computer Vision
cat: computer-vision
order: 101
meta_title: Semantic Segmentation with Polygons Data Labeling Template
meta_description: Template for performing semantic segmentation with polygons with Label Studio for your machine learning and data science projects.
---
If you need to perform semantic segmentation on images using polygons, use this template.
Open in Label Studio
## 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
```
Use the [Image](/tags/image.html) object tag to specify the image data and allow annotators to zoom the image:
```xml
```
Use the [PolygonLabels](/tags/polygonlabels.html) control tag to allow annotators to create polygons for specific labels.
```xml
```
Annotators can control the opacity of the polygons using the `opacity` argument, and the styling of the polygon tool using the `pointSize` and `strokeWidth` arguments. Use the `background` argument with the [Label](/tags/label.html) control tag to control the color of each polygon.
## Related tags
- [Header](/tags/header.html)
- [Image](/tags/image.html)
- [PolygonLabels](/tags/polygonlabels.html)
- [Label](/tags/label.html)