use abow::{all_kps_from_dir, vocab::Vocabulary};
fn main() {
let features = all_kps_from_dir("data/train").unwrap();
println!("Detected {} ORB features.", features.len());
let voc = Vocabulary::create(&features, 9, 3);
println!("\nVocabulary = {:#?}", voc);
voc.save("vocabs/test.voc").unwrap();
let loaded_voc = Vocabulary::load("vocabs/test.voc").unwrap();
assert_eq!(voc, loaded_voc);
}