Metadata-Version: 2.1
Name: polimorfo
Version: 0.8.1
Summary: a dataset loader and converter for object detection segmentation and classification
Home-page: https://github.com/fabiofumarola/polimorfo
Author: Fabio Fumarola
Author-email: fabiofumarola@gmail.com
License: Apache Software License 2.0
Keywords: polimorfo
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.6
Requires-Dist: tqdm (==4.50.2)
Requires-Dist: numpy (==1.19.2)
Requires-Dist: lxml (==4.6.1)
Requires-Dist: xmljson (==0.2.1)
Requires-Dist: requests (==2.24.0)
Requires-Dist: Pillow (==8.0.1)
Requires-Dist: matplotlib (==3.3.2)
Requires-Dist: scikit-image (==0.17.2)
Requires-Dist: pycocotools (==2.0.2)
Requires-Dist: opencv-python (==4.4.0.44)

=========
polimòrfo
=========


.. image:: https://img.shields.io/pypi/v/polimorfo.svg
        :target: https://pypi.python.org/pypi/polimorfo

.. image:: https://img.shields.io/travis/fabiofumarola/polimorfo.svg
        :target: https://travis-ci.com/fabiofumarola/polimorfo

.. image:: https://readthedocs.org/projects/polimorfo/badge/?version=latest
        :target: https://polimorfo.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status


.. image:: https://pyup.io/repos/github/fabiofumarola/polimorfo/shield.svg
     :target: https://pyup.io/repos/github/fabiofumarola/polimorfo/
     :alt: Updates



Polimòrfo (πολύμορϕος, comp. di πολυ- «poli-» e μορϕή «forma») is a dataset loader and converter library for object detection segmentation and classification.
The goal of the project is to create a library able to process dataset in format:

.. _COCO: http://cocodataset.org/#format-data
.. _`Pascal VOC`: http://host.robots.ox.ac.uk/pascal/VOC/
.. _`Google Open Images`: https://storage.googleapis.com/openimages/web/download.html

- COCO_: Common Objects in Context
- `Pascal VOC`_: Visual Object Classes Challenge
- `Google Open Images`_: Object Detection and Segmentation dataset released by Google

and transform these dataset into a common format (COCO).

Moreover, the library offers utilies to handle (load, convert, store and transform) the various type of annotations.
This is important when you need to:
- convert mask to polygons
- store mask in a efficient format
- convert mask/poygons into bounding boxes


* Free software: Apache Software License 2.0
* Documentation: https://polimorfo.readthedocs.io.


Features
--------


TODO
=====

- [X] Coco dataset
- [X] download coco datasets for train and val
- [X] add annotations loader and converter
- [X] add the ability to create dataet from scratch
- [ ] add voc dataset format
- [ ]


Credits
-------

This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage


=======
History
=======

0.2.0 (2020-02-18)
------------------
* Add support to process coco dataset


0.2.1 (2020-02-28)
------------------
* add support to download files and archives from the web and google drive

0.3.0 (2020-10-04)
-------------------

* addedd support for removing categories and other utilities

0.4.0 (2020-10-05)
-------------------

* addedd support to create a dataset from scratch

0.5.0 (2020-10-06)
-------------------

* added support to visualize images and annotations
* make image removing optional during annotations and categories deletion

0.6.0 (2020-10-12)
-------------------

* added copy dataset
* added split dataset

0.6.1 (2020-10-12)
-------------------

* fixed a bug in colors generation for show images


0.6.2 (2020-10-12)
-------------------

* update signature for function `def update_images_path(self, func):`


0.7.0 (2020-10-19)
-------------------

* add method to dump dataset in format segmentation map


0.8.0 (2020-10-23)
------------------

* fixed bug in maskutils.mask_to_polygons
* add class to transform the predictions from instance and semantic segmentation in coco format
* fixed bug in add_image, add_annotation, add_category
* make load_image and load_images load random images sampled from the dataset

0.8.1 (2020-10-23)
------------------

* fixed bug for tqdm when removing a category and its annotations from the dataset

