compare
Compare two images and returns a hamming distance. A value of 0 indicates a likely similar picture. A value between 1 and 10 is potentially a variation. A value greater than 10 is likely a different image.
compare ( string|ImageInterface $image1, string|ImageInterface $image2 ): int
Parameters
image1
Can be an instance of Image or string containing the file system path to image.
image2
Can be an instance of Image or string containing the file system path to image.