voc-dataset
The crate provides types and loader for the PASCAL Visual Object Classes (VOC) dataset. It features serde-compatible types.
Add this line to use the crate in your project.
= "0.2"
Usage
The load()
function loads all available samples from VOC dataset directory.
let voc_dir = test_data_dir.join.join;
let samples = load?;
for sample in samples.iter
The annotation types are serde-compatible. You can parse the annotation files with serde_xml_rs.
use Annotation;
let xml = read_to_string?;
let annotation: Annotation = from_str?;
License
MIT. See license file.