1 unstable release

Uses old Rust 2015

0.1.0 Nov 14, 2018

#28 in #photo

ISC license

215KB
2.5K SLoC

C 1.5K SLoC // 0.0% comments Rust 422 SLoC PHP 284 SLoC Automake 113 SLoC SQL 96 SLoC // 0.4% comments M4 36 SLoC // 0.1% comments Shell 13 SLoC

Contains (obscure autoconf code, 3KB) vendor/configure.ac

Puzzle for Rust

Travis crates.io

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 with jpeg-decoder (disabled by default)

Dependencies

~0–550KB