Click here to Skip to main content
15,794,593 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#
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:

1 solution

You can use one of the following to capture the image from web cam:
originally posted by
Abhinav S

Then use the following to change the image control from the stored image.
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
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