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, instance 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"
# convert 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file labelme2coco-0.1.2.tar.gz.
File metadata
- Download URL: labelme2coco-0.1.2.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bc276aaa3be6a112cdc8fea2586b7b0ad4040d8146ce178edfd765556e3d222
|
|
| MD5 |
53378621085fb6e68df40bc3bd18e253
|
|
| BLAKE2b-256 |
a76f06dcf7584337a2f6a3e95054e4192205b13aa414dc01efb4f23a89914d65
|
File details
Details for the file labelme2coco-0.1.2-py3-none-any.whl.
File metadata
- Download URL: labelme2coco-0.1.2-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ae59e037ec85a4d05de91ea4f1e55e39bd001a80a3fa703a790525198d4b53b
|
|
| MD5 |
06b3395e26d350c2d356f9e60dfd78f3
|
|
| BLAKE2b-256 |
36bfa0ae23452fccb2215cecdff4df85fd29af4adfbd14e1bcb78379efedd968
|