Skip to main content

PyPI version CI

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)

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

labelme2coco-0.1.1-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file labelme2coco-0.1.1.tar.gz.

File metadata

  • Download URL: labelme2coco-0.1.1.tar.gz
  • Upload date:
  • Size: 6.1 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.44.0 CPython/3.8.2

File hashes

Hashes for labelme2coco-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f1e11adc2425d37993efe6b06597f3cd2cbc81a821574fc0ef34d113c6cfa57c
MD5 b89d12fb90c55db55681d74cd324f2aa
BLAKE2b-256 0dffb55fdfc7a382d1d9b6943a9210db755dd17fdfdf876af1dd76de82bd4957

See more details on using hashes here.

File details

Details for the file labelme2coco-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: labelme2coco-0.1.1-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.44.0 CPython/3.8.2

File hashes

Hashes for labelme2coco-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cac50eda4f30a7fcc7a40559c9e4754460aeb8a941f2a455052b8cf55a222a59
MD5 4b5dfd5db31dbc7841fd88b7e8325e3d
BLAKE2b-256 2ee82b4a50a11a27534110a18db015ddb10961bc5db9291990466502f7bb9c60

See more details on using hashes here.

Supported by

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