Ruby based image comparator that compares 2 given Images with a bounding box figure. It only works for 2 PNG Images with similar Dimensions.
- Install Ruby https://www.ruby-lang.org/en/documentation/installation/
- Install ChunkyPNG "gem install chunky_png"
ruby image_comparator.rb source_image.png target_image.png output.txt output.png
output.txt
pixels (total): 103200
pixels changed: 6816
pixels changed (%): 6.604651162790698%