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')
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.