1.0.23 • Published 9 months ago

@nrs-binding/ssimulacra2 v1.0.23

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@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