Skip to main content

Convert POLYGON bounding boxes from .csv files to .xml annotation files in the Pascal VOC format for computer vision projects.

Project description

poly2pascal

Convert POLYGON bounding boxes from .csv files to .xml annotation files in the Pascal VOC format for computer vision projects.

Installation

Install poly2pascal with pip

  pip install poly2pascal

Usage

See the example notebook for more details. Here are the essentials:

# import annotator
from poly2pascal.annotations import XMLAnnotator

# create annotator
xmla = XMLAnnotator(
    images_path="path/to/images", 
    csv_file_path="path/to/csv/file.csv", 
    image_name_col="<image_name_column>",
    image_label_col="<object_label_column>", 
    xml_output_path="path/to/xml/annotation/output"
)

# create xml annotation files in Pascal VOC format
xmla.get_all_xml_annotations(img_format=".jpg")

Licence

Authors

TODO

Essential

  • add jupyterlab to dev requirements
  • run through example notebook to ensure everythin works as expected
  • build and publish on pypi test
  • build and publish to pypi
  • format with black
  • add badges to README
  • show example of csv data schema
  • fix docstrings

Optional

  • pylint score >= 8.0
  • add Sphinx docs
  • add unit tests
  • add github actions for automated testing
  • add code coverage

References

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

poly2pascal-0.0.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

poly2pascal-0.0.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file poly2pascal-0.0.1.tar.gz.

File metadata

  • Download URL: poly2pascal-0.0.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for poly2pascal-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6a47ffd222dd9ed1fafc0953fec99c51b46d5e1df08b5a51bdd304392839adc5
MD5 0597e8c2476422c2687846ab3d98254a
BLAKE2b-256 a2b935410d651646ec8b379e8210e295fdc3a189d1dca642a781bbdbdc4470eb

See more details on using hashes here.

File details

Details for the file poly2pascal-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: poly2pascal-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for poly2pascal-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ceff5b8ae413d1702ced190cc82181b3eaeb436f39e41a551d629cf2cf0ccced
MD5 f1713614047f3657750339c90eeba72c
BLAKE2b-256 ad4ac8a1a2e46b0a6e36ad69995fc7516a71d0bed7a6219b31dfbf4609236701

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