Skip to content

iteam1/2label

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2Label - Annotation Format Conversion Tool

2Label workflow diagram

A comprehensive toolkit for converting between various image annotation formats

Overview

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.

Features

  • 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

Supported Annotation Tools & 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

Installation

# 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)

Usage Examples

Converting from LabelMe to COCO format

python convert/labelme_coco.py --input_dir /path/to/labelme/annotations --output_file /path/to/output/coco.json

Converting from VIA to LabelMe format

python convert/via_labelme3.py --input_file /path/to/via/project.json --output_dir /path/to/output/labelme

Project Structure

  • convert/ - Conversion scripts between different annotation formats
  • utils/ - Utility functions for data processing and visualization
  • datasets/ - Example datasets and test cases
  • docs/ - Documentation for specific conversion workflows
  • via/ - VIA-related resources and utilities

Documentation

For detailed documentation on specific conversion workflows, see the docs directory.

License

This project is licensed under the terms of the LICENSE file included in this repository.

Contributing

Contributions are welcome! Feel free to submit a Pull Request.

Citation

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}
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published