[RESOLVED] [2005] how to capture image and compare two images to find differences
hi to all the expert
can anybody care to provide me a full detail source code to capture image from webcam and store at picturebox1 as reference and compare the image from webcam which display on picturebox2.
objective is to compare 2 picturebox is same or difference.
i am using visual basic express 2005 and WIA.dll for webcam.
Your generous help really save my live..
Thanks in advance and had a wonderful day ahead
Last edited by hobbyman; Jul 16th, 2006 at 09:34 AM.
Re: [2005] how to capture image and compare two images to find differences
Hi to all the expert
Do anyone know how to capture image and stored into the memory.
I urgently need to capture 1 image as reference at picturebox1 and then compare the image with picturebox2 with the aid of webcam.
to determine whether they are the same or diferent.
Can anyone provide me the full detail of the source code using visual baisc express 2005.
Your kindful help really save lives.
Thanks in advance
Re: [2005] how to capture image and compare two images to find differences
hmm well i know how to do this in vb6 but i'm not sure of how to capture the image from memory using managed code in vb.net I'll write up a sample application that will compair two images to see if they are the same.
Also i've never captured an image from a webcam so that could provide the most difficulties I think.
After you get that past its a rather simple process of compairing pixels.
Re: [2005] how to capture image and compare two images to find differences
I made a stupid error in the code above, (which shows me once again: always test my own code) I switched width and height.
To see why it did not work, I made a sample form. You can download it below. This work fine now.
If you want to show WHICH pixels are different, you could load the differences into an Array of Drawing.Point's and then paint those pixels a different color in one of the pictureboxes.
No matter how fool-proof your program is, there will always be a better fool.