Tracking C # Camera Objects

I would like to start by tracking objects in C #. Can you tell where to start?

+5
source share
1 answer

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(); //create an image viewer
Capture capture = new Capture(); //create a camera captue
Application.Idle += new EventHandler(delegate(object sender, EventArgs e)
{  //run this until application closed (close button click on image viewer)
   viewer.Image = capture.QueryFrame(); //draw the image obtained from camera
});
viewer.ShowDialog(); //show the image viewer

There is also a forum where you can ask questions: http://www.emgu.com/forum/

+5
source

All Articles