---
title: Object Detection with Bounding Boxes for Fashion Retail
type: templates
hide_menu: true
category: Computer Vision
cat: computer-vision
order: 1103
meta_description: Template for using Label Studio to perform object detection with rectangular bounding boxes for fashion retail.
---

Object Detection with Bounding Boxes is essential for AI in fashion retail, enabling models to accurately identify and categorize various clothing items within images. By successfully detecting items, AI can significantly enhance tasks such as inventory management, visual search, and personalized recommendations, driving sales and improving customer experiences.
However, the data labeling process for fashion retail is fraught with challenges, including time-intensive labeling tasks, consistency issues across large datasets, and the necessity for domain expertise in fashion terminology and styles. Label Studio effectively addresses these challenges through its hybrid AI-assisted pre-labeling feature, which accelerates the initial labeling process and improves consistency. The platform also incorporates expert validation, ensuring that high-quality annotations are maintained. With collaboration tools that facilitate seamless teamwork between annotators and reviewers, and customizable templates specifically designed for fashion applications, Label Studio increases labeling efficiency and allows for scalable workflows, ultimately delivering higher model performance and faster time-to-market for fashion AI solutions.
Open in Label Studio
## Labeling configuration
```html
```
The labeling configuration must be enclosed in View tags.
Use the Image tag to specify the fashion image you want to label:
```xml
```
Use the RectangleLabels tag to add labels and rectangular bounding boxes to your fashion product images simultaneously. The Label tag controls the color of each bounding box:
```xml
```
If you rotate bounding boxes, the saved JSON indicates the rotation is around the top left corner, regardless of how the rotation was performed in the labeling interface:
```json
{
"x": 50, # top left corner of the bounding box from 0 to 100% of the image width
"y": 60, # top left corner of the bounding box from 0 to 100% of the image height
"width": 10, # width of the bounding box from 0 to 100% of the image width
"height": 20, # height of the bounding box from 0 to 100% of the image height
"rotation": 45 # rotation angle in degrees around the top left corner of the bounding box
}
```
You can create rotated bounding boxes on fashion items with a three-point click:
- First click sets the start location of the bounding box.
- Second click defines the rotation angle and width.
- Third click sets the height of the box.
This allows precise annotation of angled garments or accessories.
Below is a configuration example that lets annotators additionally describe each detected fashion item and specify its condition:
```html
```
The visibleWhen attribute hides this panel until a bounding box is selected.
The Header gives annotators clear instructions, the TextArea collects descriptive details per bounding box, and the Choices tag captures the condition of the fashion product within the bounding box.