Convert labelme annotations into coco format in one step
Project description
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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for labelme2coco-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b3a9ff10c4c2df93a0caae95282342ce77d687aa0764ac34f95e37ed3f0541c |
|
MD5 | 6bcf665f03ccf39d6949cfe76a5140ed |
|
BLAKE2b-256 | d58279038a89ebf864f93df3134189abd30684933ea7432064e6d70b9d2a0157 |