0

Hy

I take two pictures from a webcam and split them into a 9 pieces. Then i match the pieces of the two pictures. The problem is that my webcam have a picture noise. So my programm thinks that in every piece of the second picture have chanced something. I need a logical push to solve my problem please help.

user422039
  • 1,447
  • 4
  • 13
  • 28

1 Answers1

1

The pictures from the web cam will never exactly match - even the slightest change in lighting will cause a difference. For this kind of picture matching you have to use a forgiving algorithm that allows at least some change and still makes a match. Create a histogram of each image, then calculating the difference seems to be a promising approach.

See the following threads on SO (just for examples, there are many more threads):

  1. Image comparison - fast algorithm
  2. Image comparison algorithm

Also I would check out Emgu if you are working with .NET, this is a .NET wrapper for openCV, a computer vision library.

Community
  • 1
  • 1
BrokenGlass
  • 158,293
  • 28
  • 286
  • 335