You can take a look at two answers to SO itself: this example concerns image comparison itself, offering links to things in C ++ (if I read correctly), and this channel offers links to wider approaches, one of which is in C.
I would suggest starting with the second link, as there are links to this discussion, which will lead to the implementation of the code of some relevant methods that you could "translate" into Java yourself.
What my best Google skills could do, not a single Java, though - sorry. Hope this is a good starting point!
EDIT: Here, someone with your problem wrote their comparison class in Java . However, I did not read the source code. He bluntly states that he, too, could not find Java libraries for this purpose, so he wrote it himself.
Oh, and this SO question has probably the best links on this subject regarding Java image processing libraries. Hopefully there is one among them that can compare images for similarities.
Ok, last edit: The Java image processing book shows a Java implementation of a basic algorithm for determining the difference between two pictures. He also has an email to contact the guy who wrote it, as well as many links. There is no library.
EDIT after reading your comment on your question: If you have not already checked all of the above links, since it seems to you that you are checking if the two images are equal, I would suggest starting with the Java image processing Cookbook (since this has an implementation of the algorithm on Java for checking equal images) and the last link to the SO question. Also check out the PerceptualImageDiff and the source code for this project (C ++); it sounds very elegant - apparently, he must check whether the two images correspond to the human visual system .
G. Bach Dec 27 '11 at 1:06 p.m. 2011-12-27 13:06
source share