Click here to Skip to main content
15,891,835 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to find duplicate photos from PC for that i have to write code in c++ MFC or you can suggest me an any algorithm ?

What I have tried:

I tried using getpixel,but it is taking time for multiple images.
Posted
Comments
Jochen Arndt 12-Feb-16 8:49am    
What do you mean by duplicate?

If you mean identical, you can use a binary file compare.

If you mean similar, you have to use some kind of image comparing algorithm.

Special cases may be be same origin but modified (resolution, clipped portion, manipulated) or converted to another image format.

If the image files contains meta data like EXIF, you may use that too.
Albert Holguin 12-Feb-16 9:54am    
You should probably post this as a solution...
Jochen Arndt 12-Feb-16 10:02am    
Done.

1 solution

This depends on the definition of "duplicate".

For identical image files you can use a binary file compare.

For similar images you have to use some kind of image comparing algorithm.

Special cases may be be same origin but modified (resolution, clipped portion, manipulated) or converted to another image format.

If the image files contains meta data like EXIF, you may use that too.
 
Share this answer
 
Comments
Albert Holguin 12-Feb-16 10:03am    
+5
Rais Shaikh 16-Feb-16 0:36am    
Can you suggest me any image comparing algorithm thanks ?
Jochen Arndt 16-Feb-16 2:46am    
Sorry. I can't because I have never used one. Just search the web for "image comparison algorithm".
Rais Shaikh 16-Feb-16 23:31pm    
Thanks !!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900