I have a reqirement in my project. I need to capture the image in webcam and then compare every 4rth frame and see if there is a change in image and if there is a change i need to able to mark the area and send an alert to user or so... Any idea on How to compare the images...My manager told me to cut the image into 3*3 pixel and put it in a grid and then compare. any idea on this would really help me.
chaithan.p
0
Newbie Poster
Recommended Answers
Jump to PostHave a look here:
http://blogs.msdn.com/domgreen/archive/2009/09/06/comparing-two-images-in-c.aspx
Thanks
Jump to PostThat's easy. All you have to do is to save the x,y position when firstPixel != secondPixel. Here's how its done:
The Method:
private bool ImageCompareArray(Bitmap firstImage, Bitmap secondImage, List<Point> diffPixels) { bool flag = true; string firstPixel; string secondPixel; if (firstImage.Width == secondImage.Width && firstImage.Height …
All 5 Replies
farooqaaa
48
Enthusiast
chaithan.p
0
Newbie Poster
farooqaaa
48
Enthusiast
chaithan.p
0
Newbie Poster
chaithan.p
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.