# macchikane-core

Portable core library for finding each image's closest near-duplicate match in
a set. A perceptual-hash Hamming distance gates candidates; an exact
differing-pixel count picks the closest match.

This crate is the engine behind the [`macchikane`](https://crates.io/crates/macchikane)
CLI.

## Usage

```rust
let (records, _skipped) = macchikane_core::engine::ingest(&paths, &macchikane_core::DHash);
let store = macchikane_core::LruPixelStore::new(1024);
let edges = macchikane_core::engine::match_nearest(&records, &opts, &store);
```

## License

Licensed under the GNU Affero General Public License v3.0 (`AGPL-3.0-only`).
See [LICENSE](LICENSE).
