Skip to content

This script is created for image dataset with annotations in XML format (pascal VOC format).

Notifications You must be signed in to change notification settings

HamletMonkey/image_dataset_resize_pad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Resize and Pad Image Dataset - Pascal VOC format

To resize image dataset with padding method (black bars either on the sides or top and bottom) to ensure the aspect ratio of each original image is remained. This script is created for image dataset with annotations in XML format (pascal VOC format).

The resulting resized + padded image and its rescaled bounding box(es) values are saved.

Running of Script

Run python file in terminal - if resizing image to a width and height of 640 * 640:

python resize_pad_img.py -ow 640 -oh 640 --imgpath ./path/to/images --annpath ./path/to/annotations

About

This script is created for image dataset with annotations in XML format (pascal VOC format).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages