Click here to Skip to main content
15,896,526 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi every body,

I need your help to do code in vb.net to match image with other images in database.
I have database consist of images and name of image.
I preprocess image in database and let it black and white.
I need code to compare inserted image from out side with image in database
to find if there is similar one in database.

I understand that i need to divide image to 9 part
and compare each part with color and position of pixel and accept thid partion according to predetermine percentage, and I need to re-divide the central part and repaint the comparison but i don't now how to divide image and make this code
please help me to do this as soon as possible.

Thanks a lot
Posted
Updated 3-May-11 2:30am
v2
Comments
Rajesh Anuhya 3-May-11 8:32am    
can you tell me what type of images you are comparing??
hind_F 3-May-11 9:45am    
i try to compare jpeg image type
NuttingCDEF 3-May-11 8:57am    
Have you looked at OpenCV to see if there is anything there that will do what you want without having to rewrite it?
hind_F 3-May-11 9:45am    
I dont know this techniqe can you help me to search on OpenCV
NuttingCDEF 3-May-11 10:10am    
See http://opencv.willowgarage.com/wiki/

I haven't tried doing this, but OpenCV is a "library of programming functions for real time computer vision" and includes stuff (including some fairly sophisticated algorithms) for things like feature detection, object tracking etc., so might well have useful stuff.

I'd guess that a key would be what sort of images you are trying to compare (not the jpeg file format, but what the pictures are actually of) - things like images at different scales, different levels of brightness / contrast or a colour cast, differing resolutions, backgrounds that may need to be filtered out etc. can easily defeat simple algorithms so unless you are looking for extremely close matches I'd expect designing something from the ground up without building on experience of others could be a tough call.

Oh, and OpenCV is open source - free for academic or commercial use.

If the images should be the same pixel by pixel then simply calculate a checksum of the picture and store it in the database. When retrieving a match you calculate the checksum of that image and search with that. This will be a lot faster then matching the images itself. You can do a complete image compare with the results you get to be absolutely sure.

Good luck!
 
Share this answer
 
thanks for your helping
but i try do code to check the position of pixels in both image and accept it in 70 % and count the white color in both images then accept it if they have 75 % similar in both images
 
Share this answer
 
If you have completed would you like to give me your source code.... my mail id is aartishah22@yahoo.com
 
Share this answer
 

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