neuralhash
v0.1.0
Published
Generates a hash from a reverse engineered Apple NeuralHash model (Node.js)
Maintainers
Readme
Node NeuralHash
This is a library that exposes the Apple Neuralhash model, which can be used to determine similar images, even if the images are not exactly the same.
Installation
From npm:
npm install neuralhashUsage
NodeJS API:
import { getNeuralHashHex } from "neuralhash";
const hash = await getNeuralHashHex("/path/to/image.png");
console.log(hash);
// a0cca3edec8339d006068f1dCLI:
npx neuralhash /path/to/image.png
# /path/to/image.png: a0cca3edec8339d006068f1dHash multiple files at once:
npx neuralhash image1.png image2.jpg
# image1.png: a0cca3edec8339d006068f1d
# image2.png: ab13fcd08dd3b0a31b07fa2eLicense
MIT
