先生,我正在尝试开发一个通过WEBCAM测量一个人身高的程序
但是我仍然不知道我将如何做到目前为止所有访问网络摄像头@ _ @
任何人都可以教我更多关于EMGU开发的信息:)请提前感谢
这就是我所拥有的全部T_T我希望有人能够教我一点
void ProcessFrame(object sender, EventArgs arg)
{
Image<Bgr, Byte> ImageFrame = capture.QueryFrame();
imageBox1.Image = ImageFrame;
}
private void Fitting_Load(object sender, EventArgs e)
{
try
{
capture = new Capture();
}
catch (NullReferenceException excpt)
{
textBox1.Text = excpt.Message;
return;
}
Application.Idle += ProcessFrame;
captureInProgress = true;
btnRecord.Text = "Pause";
}
private void Fitting_FormClosed(object sender, FormClosedEventArgs e)
{
if (capture != null)
{
capture.Dispose();
}
}
private void btnRecord_Click(object sender, EventArgs e)
{
if (captureInProgress == true)
{
Application.Idle -= ProcessFrame;
captureInProgress = false;
btnRecord.Text = "Record";
}
else
{
Application.Idle += ProcessFrame;
captureInProgress = true;
btnRecord.Text = "Stop";
}
}
答案 0 :(得分:0)
除了网络摄像头部分,你有没有尝试过任何东西。
我会给你一个开始。
使用C#实例进行人脸检测 http://www.codeproject.com/Articles/462527/Camera-Face-Detection-in-Csharp-Using-Emgu-CV-Open 试着看看是否可以扩展以检测头发。如果你能检测到头发,
通过C#基于对象颜色从图像中检测对象 http://kishordgupta.wordpress.com/2010/12/24/detect-object-from-image-based-on-object-color-by-c/