Comparison of programs programmatically - lib or class

My goal is to provide 2 image files and get a true / false answer about whether these 2 files can be the same (within an acceptable degree of confidence).

I understand that this issue falls under artificial intelligence and is much more complicated than it seems, so I doubt very much that I could (or even would like) to do it myself. I'm probably looking for a library or class. I am working with PHP.

thanks in advance.

All useful answers / comments are put to the vote.

Update:

Interestingly, I am complicating this too much, and maybe a more general library like imageMagick (imagick) can do this? Anyone more experienced using imageMagick?

+5
source share
3 answers

http://tineye.com/ may be useful if you are simply comparing your own images.

You should probably do some research on image similarity algorithms, although all the advanced ones are not suitable for a scripting language such as PHP. The simplest comparison method will work as follows:

  • Take both images of the same size, if they were not already.
  • Compare each corresponding pixel and determine how similar they are. The simplest method is to distinguish between red values, then blue values, then green values ​​and average values.
  • . , , . , .

ImageMagick PHP, , .

+1

, , , Libpuzzle ():

"" (GIF, PNG, JPG), , , .

C, PHP .

PHP .

(, PHP - , , )

+5

SO :

+2

All Articles