YOLOv5-OBB is a modified version of YOLOv5 that can predicted oriented (rotated) bounding boxes. This allows it to more closely fit oblong shapes.
Below, learn the structure of YOLOv5 Oriented Bounding Boxes.
Each image has one txt file with a single line for each bounding box. The format of each row is
x1 y1 x2 y2 x3 y3 x4 y4 label
where fields are space delimited, and the coordinates are measured in pixels.
236 267 271 267 271 306 236 306 helmet 0
188 230 216 230 216 257 188 257 helmet 0
169 146 200 146 200 174 169 174 helmet 0
201 114 230 114 230 140 201 140 helmet 0
247 245 272 245 272 268 247 268 helmet 0
261 231 285 231 285 257 261 257 helmet 0
146 150 172 150 172 179 146 179 head 0
The `data.yaml` file contains configuration values used by the model to locate images and map class names to class_id
's.
path: ../datasets/roboflow
train: train/images
val: valid/images
test: test/images
nc: 3
names: ['head', 'helmet', 'person']
With Roboflow supervision, an open source Python package with utilities for completing computer vision tasks, you can merge and split detections in YOLOv5 Oriented Bounding Boxes. Read our dedicated guides to learn how to merge and split YOLOv5 Oriented Bounding Boxes detections.
Below, see model architectures that require data in the YOLOv5 Oriented Bounding Boxes format when training a new model.
On each page below, you can find links to our guides that show how to plot predictions from the model, and complete other common tasks like detecting small objects with the model.
YOLOv5-OBB is a modified version of YOLOv5 that can predicted oriented (rotated) bounding boxes. This allows it to more closely fit oblong shapes.
With Roboflow, you can deploy a computer vision model without having to build your own infrastructure.
Below, we show how to convert data to and from
YOLOv5 Oriented Bounding Boxes
. We also list popular models that use the
YOLOv5 Oriented Bounding Boxes
data format. Our conversion tools are free to use.
Free data conversion
SOC II Type 2 Compliant
Trusted by 250,000+ developers
Free data conversion
SOC II Type 1 Compliant
Trusted by 250,000+ developers
The
YOLOv5 Oriented Bounding Boxes
,
models all use the
data format.
Each image has one txt file with a single line for each bounding box. The format of each row is
x1 y1 x2 y2 x3 y3 x4 y4 label
where fields are space delimited, and the coordinates are measured in pixels.
236 267 271 267 271 306 236 306 helmet 0
188 230 216 230 216 257 188 257 helmet 0
169 146 200 146 200 174 169 174 helmet 0
201 114 230 114 230 140 201 140 helmet 0
247 245 272 245 272 268 247 268 helmet 0
261 231 285 231 285 257 261 257 helmet 0
146 150 172 150 172 179 146 179 head 0
The `data.yaml` file contains configuration values used by the model to locate images and map class names to class_id
's.
path: ../datasets/roboflow
train: train/images
val: valid/images
test: test/images
nc: 3
names: ['head', 'helmet', 'person']