Skip to main content

some tools about pascal voc format dataset

Project description

Pascal VOC Tools

This package includes some tools about pascal voc format dataset like read xml, write xml, resize image.

XmlReader

from pascal_voc_tools import XmlReader

som functions for reading a xml file and geting data in it.

XmlWriter

from pascal_voc_tools import XmlWriter

>>> writer = XmlWriter(image_path, image_width, image_height, image_depth, database, segmented)
>>> writer.addObject(name, xmin, ymin, xmax, ymax, pose, truncated, difficult)
>>> writer.save(save_path)

DatasetResize

from pascal_voc_tools import DatasetResize

>>> resizer = DatasetResize(root_voc_dir, save_voc_dir)
>>> resizer.resize_dataset_by_min_size(min_size)
>>> resizer.copy_imagesets()  # if the file include

DataSplit

from pascal_voc_tools import DataSplit

>>> spliter = DataSplit(root_dir)
>>> result = spliter.split_by_rate(test_rate)
>>> spliter.save(result)

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

pascal_voc_tools-0.1.6.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pascal_voc_tools-0.1.6-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

Details for the file pascal_voc_tools-0.1.6.tar.gz.

File metadata

  • Download URL: pascal_voc_tools-0.1.6.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.9.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.5.2

File hashes

Hashes for pascal_voc_tools-0.1.6.tar.gz
Algorithm Hash digest
SHA256 8957877b13b090f713e581ccb85dbd39b13c1e4a273202de76989e809481c828
MD5 8c48c85886bf9c7d1cc45d61abcbd446
BLAKE2b-256 5cd99d3a079a18f9ff85615fda6c14bedf5eae557d22e37dbd59e88628047ad9

See more details on using hashes here.

File details

Details for the file pascal_voc_tools-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: pascal_voc_tools-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 22.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.9.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.5.2

File hashes

Hashes for pascal_voc_tools-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 32842f3d62545e67059d6129f806ff5964d580264692183e70134a75f246ee85
MD5 d6ef05ab949e90dbaf9b45e3bd098196
BLAKE2b-256 10397b4e2ed3efa5b64a1cde4aea162cbc1f7a6498a39173147d7dfc25733eac

See more details on using hashes here.

Supported by

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