ai infra
$ npm i ai-infra --save-dev
const { pixelDiff } = require('ai-infra');
// example
// https://github.com/ai-modules/ai-infra/blob/master/image-playground/diff/test.js
$ npm i ai-infra -g
Command:
Usage: ai-infra [options] [command]
Commands:
diff [options] <img1> <img2> 图片相似度对比,目前只支持 PNG 格式
The MIT License (MIT)