/ruby-image-comparator

Ruby based image comparator

Primary LanguageRuby

ruby-image-comparator

Ruby based image comparator that compares 2 given Images with a bounding box figure. It only works for 2 PNG Images with similar Dimensions.

Pre-requisites

  1. Install Ruby https://www.ruby-lang.org/en/documentation/installation/
  2. Install ChunkyPNG "gem install chunky_png"

Run Command

ruby image_comparator.rb source_image.png target_image.png output.txt output.png

Test results

source_image.png
alt text

target_image.png
alt text

output.txt
pixels (total):     103200
pixels changed:     6816
pixels changed (%): 6.604651162790698%

output.png
alt text