phpimage-processingimage-comparison

Image comparison in php


My scenario is as follows: I have to save 1000 of images in database, and then I have to compare new image with database images for matches (match should be 70% or more) to get the best match image from database in php.

is there any algorithm or method for fast comparison with better result ...

Thanks in advance :)


Solution

  • Try this class. It support get hash string from image to store in database and compare with new image later:
    https://github.com/nvthaovn/CompareImage

    It is very fast and accurate, although not optimal code. I have 20000 pictures in my database.