0

I am looking for faster alternatives to ResembleJS for image comparison.

So far I am able to create the similar output image like ResembleJS does:

convert fullhd.jpg \
\( -clone 0 fullhd2.jpg -compose difference -composite \
-threshold 1% -fill purple -opaque white -transparent black \) \
-compose over -composite fullhd_compare.jpg

But in ResembleJS you can get this kind of output:

{ isSameDimensions: true,
  dimensionDifference: { width: 0, height: 0 },
  misMatchPercentage: '0.73',
  analysisTime: 143,
  getDiffImage: [Function] }

Is there a way to get those especially the misMatchPercantage ?

mirza
  • 5,685
  • 10
  • 43
  • 73

0 Answers0