Image Comparison Function in PHP with GD Library

This function compares two images to find the percentage of differing pixels, and returns an array with the results. Does not use pattern recognition, good uses are comparing two frames from a webcam for differences with some resistance to signal interference, bad uses are trying to see how similar to pictures are of the same item at different light levels, angels, perspectives, etc.
via Image Comparison Function in PHP with GD Library - Robert Lerner.

Leave a comment


Scroll to Top