我想从C#中的对象跟踪开始。 你能告诉我从哪里开始吗?
答案 0 :(得分:5)
有一个名为“Emgu”的库,它是OpenCV的包装器,它对于进行任何类型的图像/视频处理都非常棒。有一些对象跟踪示例可以帮助您入门。
http://www.emgu.com/wiki/index.php/Main_Page
您只需使用7行代码即可在一个窗口中显示您的网络摄像头:
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
还有一个论坛,你可以提问: http://www.emgu.com/forum/