#image #photo #difference #similarity #libpuzzle

nightly puzzle

quickly find visually similar images

1 unstable release

0.1.0 Nov 14, 2018

#6 in #difference

Download history 12/week @ 2018-11-16 3/week @ 2018-11-23 4/week @ 2018-11-30 5/week @ 2018-12-07

1 downloads per month

ISC license

213KB
2.5K SLoC

C 1.5K SLoC // 0.0% comments Rust 422 SLoC PHP 284 SLoC SQL 96 SLoC // 0.4% comments Shell 13 SLoC

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

  • build build.rs
  • build cc 1.0