Click here to Skip to main content
15,861,172 members
Please Sign up or sign in to vote.
1.80/5 (2 votes)
hi everyone,

I want code a C#.net project that it will take a screenshot from webcam and compare screenshots who taken from the same webcam.

I tried to compare images by pixel but the RGB values of 2 pictures is very different. However they are taken from same camera in 1 sec. That's why i can't compare two images.

I heard there is a different way "Device independent color specification Method" to fix this problem but i don't know how i must do it.

Can anyone help me pls
Thx a lot
Posted

1 solution

You are not getting it. "Color specification" it totally irrelevant to it. You images are really different: motion, lighting, noise, and so on. One second is huge time to make images very difficult on a pixel level. Even nearest frames (no matter what your frame rate is) will be very different due to noise.

It makes the whole idea of pixel-by-pixel "comparison" (what would it be, by the way?) nearly useless. Any comparative analysis of the two frames can be only the evaluation of statistical correlation, or image recognition, or something as complicated to say the least. To move further, you should realize that your notion of "comparison" is something quite uncertain at the moment. Try to define strictly what it is. Even this is not easy at all. Please start with explaining your ultimate purpose.

—SA
 
Share this answer
 
Comments
Member 10860939 13-Jun-14 11:56am    
Thank you for your answer. It helped me.

So i have an specimen image. I want to compare images from webcam that

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