There's a library called "Emgu", it's a shell for OpenCV, and it's absolutely amazing for any kind of image / video processing. There are examples of object tracking that should help you get started.
http://www.emgu.com/wiki/index.php/Main_Page
You can display the webcam channel in a window using only 7 lines of code:
using Emgu.CV;
using Emgu.CV.UI;
using Emgu.CV.Structure;
using System.Drawing;
using System.Windows.Forms;
ImageViewer viewer = new ImageViewer();
Capture capture = new Capture();
Application.Idle += new EventHandler(delegate(object sender, EventArgs e)
{
viewer.Image = capture.QueryFrame();
});
viewer.ShowDialog();
There is also a forum where you can ask questions:
http://www.emgu.com/forum/
source
share