Click here to Skip to main content
15,886,046 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
Hi,

I am doing image processing in asp.net... I used opencv library to detect face and draw rectangle around it... Now I have to fetch images from sql and match them to the uploaded image...

Anybody have any idea about it... Please guide me how i do it using opencv....
Thanks in advance !
Posted
Comments
Sergey Alexandrovich Kryukov 28-Jun-12 12:15pm    
You already got most critical piece of functionality, as far as I can understand. So, what's the problem?
--SA
Sandeep Mewara 28-Jun-12 14:32pm    
OP replied:
I have to fetch images form sql database to match or compare... how I fetch the images for this purpose???
Misbah1 28-Jun-12 12:32pm    
I have to fetch images form sql database to match or compare... how I fetch the images for this purpose???
Sergey Alexandrovich Kryukov 29-Jun-12 18:15pm    
I can see that Tim Corey provided usable links. Will they work for you?
--SA
Misbah1 1-Jul-12 3:54am    
yes these links are so useful..


1 solution

Pulling an image from the database isn't that difficult compared to what you have already done. Here is an article that walks you through how to do this:

Storing and Retrieving Images from SQL Server Using Strored Procedures and C#.net[^]

Comparing the two images will be more difficult, especially since you aren't looking for an exact match but something close. Here are some options that might help you out:

http://social.msdn.microsoft.com/Forums/is/csharplanguage/thread/9f7d4369-6501-4ee6-a25e-044765e726d9[^]
 
Share this answer
 
Comments
Misbah1 30-Jun-12 11:56am    
Thanks a lot.. these links are very useful...

I have fetched images from sql database.. Now I have to compare images.. I searched many algorithms but all of them match pixel by pixel.. if anyone pixel does not match they return the result as False/mismatched... And the second problem is... if both images are even same but their size is different.. then these algorithms show the result as "Mismatch"...

Now I have two problems...
1. Resizing image
2. Is there any specified range that if ATLEAST how many number of pixels of both images match.. then we can conclude that images are same....

Please guide me...
Thanks in advance... !!!
Tim Corey 30-Jun-12 12:17pm    
Now you are getting into the deep weeds. This is something that you are going to need to develop on your own. You are going to need to develop an algorithm that is specific to your purposes. This is no longer a specific, measurable task (like "retrieve image from SQL"). Now you are into the subjective area of comparison. There may be books and other texts to help you in this area, but this isn't a "use this code"-type of issue. Sorry.
Misbah1 1-Jul-12 9:25am    
THanks for your suggestions.. as the tutorials you shared are really very useful... these tutorials helped me to set objectives : )
Thanks !
Misbah1 1-Jul-12 12:00pm    
I have done image processing.. thanks to all for helping :)

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