YOLO annotation format
YOLO models use a specific annotation format: one .txt file per image, with one line per annotated object: class_id x_center y_center width height. All five values are space-separated. The class ID is an integer. The four geometry values are floating-point numbers normalised to the image dimensions — values between 0 and 1.
RegionKit exports this format directly. Each Rectangle annotation in your scene becomes one line in the YOLO .txt file, with the normalisation applied automatically. Label-to-class-ID mapping is handled in your data.yaml file.
Bounding boxes and polygons
Bounding boxes (YOLO detection) — Press R for the Rectangle tool. Click to anchor the first corner, click again to commit. Boxes are the standard format for YOLO object detection tasks.
Polygons (YOLO segmentation) — Press P for the Polygon tool. Click each vertex, double-click or press Enter to close. YOLOv8 and later support polygon segmentation masks. RegionKit exports polygons in normalised YOLO segmentation format as well.
Organising annotations by class
RegionKit's layer system maps well to YOLO class organisation. Create one layer per class (e.g. person, car, bicycle), assign each annotation to the appropriate layer, and set the label to match the class name.
In your data.yaml, list the class names in the same order as your layer/label assignments. The class index (0, 1, 2…) is determined by position in the names list.
YOLO directory structure
YOLO training expects images and labels in mirrored directories:
dataset/images/train/img001.jpgdataset/labels/train/img001.txt
The filename of each .txt must match the corresponding image filename (e.g. img001.txt for img001.jpg). Images with no annotations should have an empty .txt file.
When RegionKit is the right YOLO annotation tool
RegionKit works best when you need to annotate a small batch of images quickly without setting up a server, when Python or Docker isn't available on your machine, when you need to work offline, or when you want zero image upload. For annotating thousands of images with a team, platforms like CVAT or Roboflow are better suited.
Read the full walkthrough in the YOLO annotation tutorial on the RegionKit blog.