Skip to main content

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)

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

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for labelme2coco-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e3099022bc9af8913aa3b759e972983725a6beb4a3e7fc282520bc72d0494193
MD5 99910e7b2899782be17d6b1606e29b28
BLAKE2b-256 b3e2013858cba24c54f42ad6b69578204d36d15ccaf78cdf683a6a5ee3f2a52a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: labelme2coco-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b3a9ff10c4c2df93a0caae95282342ce77d687aa0764ac34f95e37ed3f0541c
MD5 6bcf665f03ccf39d6949cfe76a5140ed
BLAKE2b-256 d58279038a89ebf864f93df3134189abd30684933ea7432064e6d70b9d2a0157

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 Sentry Error logging StatusPage Status page