#image #photo #difference #similarity #libpuzzle

nightly puzzle

quickly find visually similar images

1 unstable release

0.1.0 Nov 14, 2018

#6 in #similarity

1 downloads per month

ISC license

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));


  • gd: linking with GD (enabled by default)
  • jpeg-decoder: reading JPEGs with jpeg-decoder (disabled by default)