Convert labelme annotations into coco format in one step
Project description
labelme2coco Python Package for Linux/MacOS/Windows
Make your own dataset for object detection/instance segmentation using labelme and transform the format to coco json format
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.1.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for labelme2coco-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cac50eda4f30a7fcc7a40559c9e4754460aeb8a941f2a455052b8cf55a222a59 |
|
MD5 | 4b5dfd5db31dbc7841fd88b7e8325e3d |
|
BLAKE2b-256 | 2ee82b4a50a11a27534110a18db015ddb10961bc5db9291990466502f7bb9c60 |