Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6985671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:42:35+00:00 2026-05-27T18:42:35+00:00

I spent quite some time researching for a library that allows me to compare

  • 0

I spent quite some time researching for a library that allows me to compare images to one another in Java.

I didn’t really find anything useful, maybe my GoogleSearch-skill isn’t high enough so I thought I’d ask you guys if you could point me into a direction of where I could find something like this.

Basically what I want to do is to compare two images with each other and get a value of how much the two are similar. Like a percentage or so.

I hope you guys have something I can use, I wouldn’t know how to write something like that myself…

PS: It doesn’t necessarily has to be in Java, that’s just the environment my app will be running.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:42:36+00:00Added an answer on May 27, 2026 at 6:42 pm

    You could take a look at two answers on SO itself: this one is about image comparison itself, offering links to stuff in C++ (if I read correctly) while this one offers links to broader approaches, one being in C.

    I would suggest starting with the second link since there’s links on that discussion that’ll lead to implementation code of some relevant techniques which you might be able to “translate” into Java yourself.

    That’s the best my google skills could do, no Java though – sorry. I hope it’s a good starting point!

    EDIT:
    Here’s someone with your problem who wrote his own comparison class in Java. I didn’t read the source code though. He expressly states that he couldn’t find Java libraries for that purpose either, so that’s why he wrote it himself.

    Oh, and this question on SO has probably the best links on this, all regarding Java libraries of image processing. Hopefully there’s one amongst them that can compare images for similarity.

    Ok, last edit:
    The Java Image Processing Cookbook shows a Java implementation of a basic algorithm to determine the difference between two pictures. It also has an email to contact the guy who wrote it as well as a host of references. No library though.

    EDIT after reading your comment to your question:
    Unless you’ve already checked all of the above links, since what you want seems to be checking whether two images are equal, I would suggest starting with the Java Image Processing Cookbook (since that has an implementation of an algorithm in Java to check for equal images) and the last link to an SO question. Also, check PerceptualImageDiff and the source code of that project (C++); it sounds really nifty – it’s apparently supposed to check whether two images look equal to the human visual system.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My Friends, I spent quite some time on this one... but cannot yet figure
Having spent quite some time developping in C#, I noticed that if you declare
Recently I spent quite some time writing various Visual Studio Extensions projects. Even though
Been struggling with this for quite some time so any help is appreciated. Spent
I have spent quite some time going through similar questions here and have not
I have spent quite some time making a function and the last 15-20 minutes
I'm not quite sure what this is called, but I've spent some time thinking
I just spent quite some time trying to resolve a virtual attribute issue in
Yesterday I spent quite some time trying to recompile PHP for OS X. I
So Ive spent quite some time today with sql lite and saw the .net4

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.