1 unstable release
Uses old Rust 2015
0.1.0 | Nov 14, 2018 |
---|
#25 in #photo
215KB
2.5K
SLoC
Contains (obscure autoconf code, 3KB) vendor/configure.ac
Puzzle for Rust
The Puzzle library lets you quickly find visually similar images, even if they have been resized, recompressed, recolored or slightly modified.
Getting Started
extern crate puzzle;
fn main() {
let context = puzzle::Context::new();
let a = context.cvec_from_file("a.jpg");
let b = context.cvec_from_file("b.jpg");
println!("{}", a.distance(b));
}
Features
gd
: linking with GD (enabled by default)jpeg-decoder
: reading JPEGs withjpeg-decoder
(disabled by default)
Dependencies
~0–660KB
~11K SLoC