Algorithm to compare two images

Hi, I would like to know if there is an algorithm to compare two jpg
without using RMagick.

Thanks.

Hi,

Well, it certainly depens on that you mean by “comparing”. Maybe this is
helpful:

http://rosettacode.org/wiki/Percentage_difference_between_images#Ruby

Thanks :slight_smile:

Jan E. wrote in post #1051817:

Hi,

Well, it certainly depens on that you mean by “comparing”. Maybe this is
helpful:

http://rosettacode.org/wiki/Percentage_difference_between_images#Ruby

Sorry. I used the Average Hash algorithm on that page.

I used

http://www.hackerfactor.com/blog/index.php?/archives/432-Looks-Like-It.html

for comparing mugshots. Its tweak-able an worked well enough. I did
this in jruby and python. I found I had to write my own shrink method
because resizing produces different results even with the same
algorithms.

Becker

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs