Skip to main content

Tool to cut images from bounding boxes in PascalVOC XML files.

Project description

pascalvoc-to-image

This repository contains a Python script that can easily cut images from annotated PascalVOC images. It will:

  • Read the directory containing the XMLs
  • Parse the XMLs to a readable format
  • Create images for all created bounding boxes in a separate folder

Usage

Using the script is pretty simple, since it only has three parameters.

usage: pascalvoc-to-image [-h] pascalDirectory imageDirectory saveDirectory

positional arguments:
  pascalDirectory   A path to the directory with Pascal VOC XML files
  imageDirectory    A path to the directory with images
  saveDirectory     A path to the directory to save Pascal boundingbox images to

optional arguments:
  -h, --help  show this help message and exit

Installation

Pip

$ pip install pascalvoc-to-image

Manual

$ git clone https://www.gitlab.com/jdreg95/pascalvoc-to-image.git
$ cd pascalvoc-to-image
$ sudo pip install .

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

pascalvoc_to_image-1.0.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

pascalvoc_to_image-1.0.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file pascalvoc_to_image-1.0.0.tar.gz.

File metadata

File hashes

Hashes for pascalvoc_to_image-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9fe4c67d8bb5957137aba07f20f7d8945f7a57739ca81a496954dc33ecf134dd
MD5 02adffd4bffdedd00cd75d8f3612b8fc
BLAKE2b-256 014b6ca5b4e3e7c68241bb63c31fc1a901c6051aec822624d81b2eeba9ae5c9c

See more details on using hashes here.

File details

Details for the file pascalvoc_to_image-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pascalvoc_to_image-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85b3d777c19c7b5ffd6537f6e9160643dff66f9152ff2b704dabf66f39574a02
MD5 70eabb39e4dee0c39ed7034a6e3f94f8
BLAKE2b-256 47c8ed9397d28201b3fadabbcd52f83a5af07201bfda428d20b3edbc437eda65

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