我正在寻找更快的ResembleJS替代品来进行图像比较。
到目前为止,我能够像 ResembleJS 一样创建类似的输出图像:
convert fullhd.jpg \
\( -clone 0 fullhd2.jpg -compose difference -composite \
-threshold 1% -fill purple -opaque white -transparent black \) \
-compose over -composite fullhd_compare.jpg
但是在 ResembleJS 中你可以得到这样的输出:
{ isSameDimensions: true,
dimensionDifference: { width: 0, height: 0 },
misMatchPercentage: '0.73',
analysisTime: 143,
getDiffImage: [Function] }
有没有办法让那些特别是 misMatchPercantage ?