A simple labels parser of COCO dataset.
Project description
Install
pip install coco-labels-parser
Usage
from coco._parser import CocoBoxesParser
json_file = coco/annotations/instances_train2014.json #"path to Annotation file which is json format!"
save_path = coco/labels #"where you want to save"
my_parser = CocoBoxesParser(json_file,save_path)
my_parser.get_categories_id()
my_parser.get_labels()
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file coco_labels_parser-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: coco_labels_parser-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5fc11a9543016d65088a45b9937982ca3115bc10b42e8f94e1077070ec43cdf |
|
MD5 | f829cb44719ad3d09b87b5683e77ddaf |
|
BLAKE2b-256 | dd377731a25525aed2f5554ecb9bfefc77d03c6d9dbdba4be650eaf6ddadbe44 |