Skip to main content

Convert labelme annotations into coco format in one step

Project description

PyPI version CI

labelme2coco python package for Linux/MacOS/Windows

Package maintainer: Fatih Cagatay Akyon

Convert LabelMe annotations to COCO format in one step

Labelme is a widely used is a graphical image annotation tool that supports classification, segmentation, isntance segmentation and object detection formats. However, widely used frameworks/models such as Yolact/Solo, Detectron, MMDetection etc. requires COCO formatted annotations.

You can use this package to convert labelme annotations to COCO format.

Getting started

Installation

pip install labelme2coco

Usage

# import package
import labelme2coco

# set directory that contains labelme annotations and image files
labelme_folder = "tests/data/labelme_annot"

# set path for coco json to be saved
save_json_path = "tests/data/test_coco.json"

# conert labelme annotations to coco
labelme2coco.convert(labelme_folder, save_json_path)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

labelme2coco-0.1.0.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

labelme2coco-0.1.0-py3-none-any.whl (19.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page