C# 通过网络摄像头的高度测量系统
嗨,先生们,我正在开发一个程序,通过网络摄像头测量一个人的身高 但我仍然不知道我该怎么做,到目前为止我所做的只是访问网络摄像头@_@ 有人能教我更多关于EMGU开发的知识吗:)提前谢谢 这就是我所拥有的一切,我希望任何人都能仁慈地教我C# 通过网络摄像头的高度测量系统,c#,winforms,emgucv,C#,Winforms,Emgucv,嗨,先生们,我正在开发一个程序,通过网络摄像头测量一个人的身高 但我仍然不知道我该怎么做,到目前为止我所做的只是访问网络摄像头@_@ 有人能教我更多关于EMGU开发的知识吗:)提前谢谢 这就是我所拥有的一切,我希望任何人都能仁慈地教我 void ProcessFrame(object sender, EventArgs arg) { Image<Bgr, Byte> ImageFrame = capture.QueryFrame(); imageBox1.Image
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";
}
}
void ProcessFrame(对象发送器、事件args arg)
{
Image ImageFrame=capture.QueryFrame();
imageBox1.Image=ImageFrame;
}
私有void Fitting\u加载(对象发送器、事件参数e)
{
尝试
{
捕获=新捕获();
}
捕获(NullReferenceExcpt)
{
textBox1.Text=例外消息;
返回;
}
Application.Idle+=ProcessFrame;
captureInProgress=true;
btnRecord.Text=“暂停”;
}
私有void Fitting_FormClosed(对象发送方,FormClosedEventArgs e)
{
如果(捕获!=null)
{
capture.Dispose();
}
}
私有无效BTN记录\u单击(对象发送者,事件参数e)
{
if(captureInProgress==true)
{
Application.Idle-=ProcessFrame;
captureInProgress=false;
btnRecord.Text=“记录”;
}
其他的
{
Application.Idle+=ProcessFrame;
captureInProgress=true;
btnRecord.Text=“停止”;
}
}
到目前为止,除了网络摄像头部件之外,您是否尝试过其他功能
我会给你一个开始
使用C#示例的人脸检测
尝试看看这是否可以扩展到检测头发。如果你能发现头发
用C语言实现基于目标颜色的图像目标检测#
谢谢你的提示,先生。。。先生,能不能用精明的边缘来测量一个人的身高和宽度?