@nrs-binding/ssimulacra2
v1.0.23
Published
[rust ssimulacra2](https://github.com/rust-av/ssimulacra2_bin) binding for nodejs.
Downloads
34
Readme
@nrs-binding/ssimulacra2
rust ssimulacra2 binding for nodejs.
Usage with nodejs
install:
$ npm install @nrs-binding/ssimulacra2 -S
run:
const { getScore } = require('@nrs-binding/ssimulacra2');
getScore('path/to/img1', 'path/to/img2').then(score => {
console.log('ssimulacra2 score:', score);
});
Usage with cli
install:
$ npm install @nrs-binding/ssimulacra2 -g
run in terminal:
ssim2 path/to/img1 path/to/img2