嗨,先生们,我正在尝试开发一个程序,该程序将通过 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";
}
}