2Label is a toolkit designed to simplify the process of converting between different annotation formats used in computer vision and image labeling tasks. It supports conversions between popular annotation tools like CVAT, LabelImg, LabelMe, VIA, COCO, YOLO, and more.
- Multiple Format Support: Convert between various annotation formats
- Batch Processing: Process multiple files at once
- Data Integrity: Preserves annotation data during conversion
- Extensible: Easy to add support for new annotation formats
Tool/Format | Description | Installation |
---|---|---|
LabelImg | Graphical image annotation tool | pip install labelImg |
LabelMe | Image polygonal annotation tool | pip install labelme |
VIA | VGG Image Annotator | Web-based (no installation needed) |
CVAT | Computer Vision Annotation Tool | See CVAT installation guide |
PixelAnnotationTool | Tool for pixel-wise annotation | See PixelAnnotationTool repo |
COCO | Common Objects in Context | JSON format |
YOLO | You Only Look Once | TXT format |
Pascal VOC | Visual Object Classes | XML format |
# Clone the repository
git clone https://github.com/yourusername/2label.git
cd 2label
# Install required dependencies
pip install -r requirements.txt # (Create this file with necessary dependencies)
python convert/labelme_coco.py --input_dir /path/to/labelme/annotations --output_file /path/to/output/coco.json
python convert/via_labelme3.py --input_file /path/to/via/project.json --output_dir /path/to/output/labelme
convert/
- Conversion scripts between different annotation formatsutils/
- Utility functions for data processing and visualizationdatasets/
- Example datasets and test casesdocs/
- Documentation for specific conversion workflowsvia/
- VIA-related resources and utilities
For detailed documentation on specific conversion workflows, see the docs directory.
This project is licensed under the terms of the LICENSE file included in this repository.
Contributions are welcome! Feel free to submit a Pull Request.
If you use this tool in your research, please cite:
@software{2label,
author = {Your Name},
title = {2Label: A Tool for Converting Between Annotation Formats},
year = {2023},
url = {https://github.com/yourusername/2label}
}