image annotation file operation provider.
Project description
img-ann
The imgann is a package for a simplify operations in image annotated files. such as, annotation type converting [coco format, pascalVOC format, csv format], image dataset sampling], etc.
Installation
You can install the Real Python Feed Reader from PyPI:
$pip install imgann
The package is support Python 3.6 and above.
Usage
-
To get N number of annotated images randomly. you can use coco format, pascalVOC format or csv format as annotation format. keywords can be from ['coco', 'csv', 'voc']
from imgann import Sample
Sample.show_samples( <image dataset dir> : string, <annotation file dit> : string, <number of images> : int, <annotation type> : string= 'coco' )example :
Sample.show_samples('./data/test','./annotations/test',5,'voc') -
To convert annotation file format.
-
coco to pascal VOC format converting
from imgann import Convertor
Convertor.coco2voc( <image dataset dir> : string, <coco annotated .json file dir> : string, <voc formatted .xml file saving folder dir> : string)example :
Convertor.coco2voc('../data/train', '../data/annotations/dataset.json', '../data/annotations/voc_dataset') -
coco to csv format converting
from imgann import Convertor
Convertor.coco2csv( <image dataset dir> : string, <coco annotated .json file dir> : string, <voc formatted .csv file dir> : string)example :
Convertor.coco2csv('../data/train', '../data/annotations/dataset.json', '../data/annotations/dataset.csv') -
csv to coco format converting
from imgann import Convertor
Convertor.coco2csv( <image dataset dir> : string, <csv annotated .csv file dir> : string, <coco formatted .json file dir> : string)example :
Convertor.csv2coco('../data/train', '../data/annotations/dataset.csv', '../data/annotations/dataset.json') -
csv to pascal VOC format converting
from imgann import Convertor
Convertor.csv2voc( <image dataset dir> : string, <csv annotated .csv file dir> : string, <pascal VOC formatted .xml file saving folder dir> : string)example :
Convertor.coco2csv('../data/train', '../data/annotations/dataset.csv', '../data/annotations/voc_dataset') -
pascal VOC to coco format converting
from imgann import Convertor
Convertor.voc2coc( <image dataset dir> : string, <pascal VOC annotated file included folder dir> : string, <coco formatted .json file dir> : string)example :
Convertor.voc2coco('../data/train', '../data/annotations/voc_dataset', '../data/annotations/dataset.json) -
pascal VOC to csv format converting
from imgann import Convertor
Convertor.voc2csv( <image dataset dir> : string, <pascal VOC annotated file included folder dir> : string, <csv formatted .csv file dir> : string)example :
Convertor.voc2coco('../data/train', '../data/annotations/voc_dataset', '../data/annotations/dataset.csv)
-
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 imgann-0.7.1.tar.gz.
File metadata
- Download URL: imgann-0.7.1.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ba0caa82f3cdce5b28ee1658bdf9e26484e2bc90dbce59b466199e0fa977143
|
|
| MD5 |
30baaf79cbae3e06f48e3cd3974b7128
|
|
| BLAKE2b-256 |
f6baee9718e9a643b6e71987457a93ddc7c0476b65681a3ac4e771150fca4211
|
File details
Details for the file imgann-0.7.1-py3-none-any.whl.
File metadata
- Download URL: imgann-0.7.1-py3-none-any.whl
- Upload date:
- Size: 17.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0d5da4920c1f4d8739e46510b33ce76feadfa910f3b51f015ee3e3c8f35e365
|
|
| MD5 |
b65faa30d0c7cdb430a1f5d6c285bb5f
|
|
| BLAKE2b-256 |
89b16a0dbc5e9cfd422dee7a7d18c3e52fb22348d5a1d13f5865f45582f1f9f5
|