星期六, 3月 27, 2010

Motion Detection

Find a blog [link]. The author point out some rules of motion detection.
  1. Get two frames from webcam
  2. Blur the images to reduce camera noise
  3. Calculate absolute differences from them
  4. Make the new image with only those differences
  5. Convert step 4 image to grayscale
  6. Add binary threshold filter to leave only white and black pixels in grayscale image
  7. If there are more than 100 white pixels in area of a circle, then movement is detected!
I should try rule 2 and rule 5 in following program.

沒有留言: