Question

Is there any suggestion (piece of code) that helps me to understand the concept of how to compare two different image files whether they are same or not?

Thanks in advance.

EDIT: I mean, for example, I should check the CRC32 (that which I do not know how to do) with size check of the file. Then it means they are identically same pictures...

EDIT2: When I say images are the same, I mean images are looks exactly the same to the user.

Was it helpful?

Solution

You can use CRC32 to sum any file. However if you want to find out if two images are the same you have to decide whether two images which look the same are the same. e.g. The following images all have different sizes let alone different CRC32 numbers.

enter image description here enter image description here enter image description here enter image description here

OTHER TIPS

The checksum for the zip entry has the meaning: when different the files are different.

The CRC32 class allows you to calculate the checksum yourself of bytes.

To efficiently check whether two images are almost equal, there are many means, like making a small 8x8 image and comparing the differences in color values.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top