Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi i have a web cam and it captures a photo and i want to compare capture photo with stored photo picture . how can i do it . the capture photo is displaying on picture box . Code written in C# asp.net
Posted
Comments
Ron Beyer 26-Dec-13 14:17pm    
What does "compare" mean? Percentage alike? Finding features? Recognizing faces?
Christopher Drake 26-Dec-13 14:48pm    
If you are looking for facial recognition, maybe this link is better:
http://www.codeproject.com/Articles/21110/Face-Detection-C-Library-with-Skin
-and-Motion-Anal

1 solution

You can use one of the following to capture the image from web cam:
http://www.jpreece.com/wpf/webcam-image-capture/
or
http://easywebcam.codeplex.com/
originally posted by
Abhinav S

Then use the following to change the image control from the stored image.
C#
private void ShowPhoto()
{
mainImage.Source = new BitmapImage(new Uri(@"pack://siteoforigin:,,,/images/userPhotoImage.jpg"));

}


This will load an image called userPhotoImage from the relative path (to the executable) "/images".
 
Share this answer
 
v2
Comments
SoMad 26-Dec-13 14:42pm    
That doesn't really answer the question about how to compare images.

Soren Madsen
Christopher Drake 26-Dec-13 14:46pm    
Is the question about comparing bytes or visually? Or is John looking for some sort of facial recognition? I suppose we need to get some clarification from John.

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