Results 1 to 14 of 14
Thread: Comparing two images
- 10-30-2008, 12:51 PM #1
Comparing two images
how can i compare two images in java? its not like 100% pixel match but something like detecting a person. I take a persons photo and compare it with the database photo to check for a certain threshold. how it can be done? any code or any idea/suggestions?
If image is not possible/too hard i can also use signature but i think it will make things worse.
please help me.
i think i will need JAI packages...
- 10-30-2008, 01:37 PM #2
Member
- Join Date
- Oct 2008
- Location
- Sweden, Gothenburg
- Posts
- 21
- Rep Power
- 0
Uhm... Yeah..
I took a couple of course at the university to get an idea on how to do this. It is very very complicated to do even for a basic set of no more than 20-30 photos in perfect condition. The courses were, amongst others, Artificial Intelligence, Neural Networks, Advanced Image Transforms and math-classes out of my a*se. They were all great fun and I recommend them.
The point I'm trying to make here is that this is a very complex task and you are unlikely to find a generic API in java of the kind:
boolean Image.kind_of_looks_like(Image image)
- 10-30-2008, 02:07 PM #3
lolz...got ur point...i dont need a perfect algorithm...i need something i can start to work with...i can start from the beginning but i dont have time...:S...
n e ways thanx for ur suggestion...i have a working algorithm that has an accuracy of 50% (:D) so i have to work hard i think.
- 10-30-2008, 05:22 PM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
You should study about how to read and write Java image. Then try to implement your own way. If you can read the image, you should able to find a pattern to compare images.
- 10-31-2008, 12:12 PM #5
I know how to read and write java image, can u provide me any algorithm that does the comparing effeciently??
- 10-31-2008, 12:17 PM #6
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
If you can read an image, you can find the header details right?
- 10-31-2008, 01:58 PM #7
What is the expected results of comparing two images?compare two images
For example:
image 1 is the same size as image 2
image 1 is a subsection of image 2 (ie it is contained with it)
image 1 uses same amount of color red as image 2
The location of the dark intensity colors in the two images has an agreement of > xx%
- 04-18-2009, 07:59 AM #8
Member
- Join Date
- Apr 2009
- Posts
- 1
- Rep Power
- 0
how to compare two images that to say its equal or not?
- 04-18-2009, 11:23 AM #9
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 04-18-2009, 04:25 PM #10
This is one of the so-called "AI-Complete" problems - i.e. it is incredibly difficult. I suggest you look up some recent academic papers on computer vision and face recognition. You'll probably be dealing with wavelets, DCTs, eigenfaces, inference-based choice engines, etc.
If you do manage to create an efficient working solution, I'm sure a number of international governments would be interested in talking to you.Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
How To Ask Questions The Smart Way
- 04-19-2009, 03:32 AM #11
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
I agreed with your. But in lots of applications, I seen that reading the header and comparing some basic details compared the images. Actually those are not advance level application. And I don't think once you edit an image quite similar to the other one, headers are given different details though. Like the color depth and so on. So I think for low level applications it's not a bad selection.
- 04-19-2009, 06:16 AM #12
Senior Member
- Join Date
- Jan 2009
- Posts
- 671
- Rep Power
- 5
-
Seriously, the question is too vague to be answered correctly at here or at any site..
- 04-25-2009, 12:37 AM #14
Member
- Join Date
- Apr 2009
- Posts
- 1
- Rep Power
- 0
Similar Threads
-
Comparing Images
By shaungoater in forum Advanced JavaReplies: 0Last Post: 03-17-2008, 10:38 AM -
Comparing problem
By mcal in forum New To JavaReplies: 1Last Post: 01-24-2008, 03:56 AM -
Comparing Strings
By Java Tip in forum Java TipReplies: 0Last Post: 12-03-2007, 09:44 AM -
comparing
By Feng in forum New To JavaReplies: 2Last Post: 11-23-2007, 09:40 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks