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
Release history Release notifications | RSS feed
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.3.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for pascal_voc_tools-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14f461dd2392d85de0079bbd3324d59cd91ecc025a83912796da709ac6c7f4d1 |
|
MD5 | 51248cc8ea96931445449460f038296b |
|
BLAKE2b-256 | 6b0157ee4b407e1924405fd85edb8280230381b6f4b24b5f2d7da0b0481b91b3 |