1.0.16 • Published 1 year ago

@nrs-binding/ssimulacra2 v1.0.16

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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