Skip to main content

Python library for converting image and object annotations formats into each other.

Project description

Python library for converting image and object annotations formats into each other. Changelog =========

0.2.3 (2020-03-17)

  • Upgraded wai.common requirement to v0.0.28.

  • Separated main settings from library settings.

  • Changed --include-zero-area flag to min/max width/height/area flags.

  • Added --comments option for ROI writer to insert comments at the beginning of written files.

  • Input directories read all contained files ending in .report when using adams format.

  • Added --sample-stride option to tfrecords input which sub-samples the mask when generating the polygon for speed increase.

  • Added --mask-threshold option to tfrecords input which sets the probability to consider the mask inside the polygon.

  • Internal format is now an object rather than a tuple.

  • Added --size-mode flag to ROI format which writes ROI files with x,y,w,h headers rather than x0,y0,x1,y1 headers.

0.2.2 (2020-03-11)

  • Upgraded wai.common requirement to v0.0.26.

0.2.1 (2020-03-11)

  • VGG/COCO formats can now take a --pretty flag to pretty-print their JSON annotations.

  • Upgraded wai.common requirement to v0.0.25.

  • image_utils.lists_to_polygon method converts lists of X and Y coordinates into a planar.Polygon

  • image_utils.polygon_to_bbox method returns the x0,y0,x1,y1 coordinates of the bounding box around the supplied planar.Polygon object

0.2.0 (2020-03-06)

  • Conversions now automatically discard annotations with zero area, can be reverted with --include-zero-area flag.

  • image_utils.mask_to_polygon can now work with a view of the mask instead of the full mask to speed up the polygon detection

  • Modified utilities for getting labels/prefixes to be able to specify a default value.

  • Upgraded wai.common requirement to v0.0.24.

  • Added requirement for wai.json v0.0.4.

0.1.4 (2020-02-18)

  • Added compatibility layer for Tensorflow V1.

  • Now ensures Tensorflow is in eager execution mode.

0.1.3 (2020-02-12)

  • Upgraded wai.common requirement to v0.0.22.

0.1.2 (2020-01-24)

  • Fixed default filename for ROI format (“-rois.csv” rather than “-roi.csv”).

  • Added the ability to specify a prefix and suffix for reading/writing ROI files.

  • Logging changes.

  • Moved utilities for each format into their own sub-package.

  • Added reader options to read input files from list files.

0.1.1 (2020-01-23)

  • Separated command-line option parsing from io/converter classes so that imports unique to specific formats are not required unless using that format.

  • Refactoring of package structure.

  • Added logging of when files are being written.

  • Conversion to COCO format now report polygon mask area, rather than just bounding- box area.

  • Added support for non-standard keywords to the ROI format.

0.1.0 (2020-01-22)

  • Added the ability to specify inputs by glob syntax, and also specify negative images with no annotations.

  • Added utility functions for images (image_to_numpyarray, remove_alpha_channel) and for masks (mask_to_polygon, polygon_to_minrect, polygon_to_lists) in module wai.annotations.image_utils

  • Added –extensions option to control the search order for associated images.

  • Added –verbosity flag to control logging verbosity.

  • Added polygon mask support to the ROI format.

0.0.4 (2020-01-15)

  • Modified requirements to include Cython as this is required in later versions of pycocotools. Moved pycocotools to end of dependency list to ensure all requirements are met before installation.

0.0.3 (2019-12-16)

  • Changed –coerce option to –force.

  • Tensorflow is no longer a dependency in setup.py as can work with tensorflow or tensorflow-gpu.

  • TFRecords format can now handle polygon-mask annotations.

0.0.2 (2019-12-09)

  • Can now work with images that contain no annotations.

0.0.1 (2019-12-04)

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wai.annotations-0.2.3.tar.gz (58.0 kB view details)

Uploaded Source

File details

Details for the file wai.annotations-0.2.3.tar.gz.

File metadata

  • Download URL: wai.annotations-0.2.3.tar.gz
  • Upload date:
  • Size: 58.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.2.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.9

File hashes

Hashes for wai.annotations-0.2.3.tar.gz
Algorithm Hash digest
SHA256 47ba3ce8d0f0de0ce8763e566a754819d601301c723dc5b7085b20a17d55f918
MD5 02ead9ccf8321fc22835783667e21692
BLAKE2b-256 aa084a0caa2367600b050857a17bf421419397f1fc374042b5a6258c723a4b90

See more details on using hashes here.

Supported by

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