基于emgu CV 人脸识别基础版
opencv吧
全部回复
仅看楼主
level 5
whbledream 楼主
最近学习了Emgu cv 的图像处理算法,使用opencv公司提供的开源代码做了一个远程
图片流的人脸识别检测的上位机,首先来看看效果图
首先启动程序后
然后点击取得连接,蓝色区域将会显示远程摄像头采集的视频图像,
此时将捕捉人脸,并识别,如图
侧脸时,由于我使用的是之前训练的识别库,这个角度没法识别出我的脸,
调整角度后结果就如下图,识别出我的脸,并显示出在识别库对应的我的名字。
当点击训练识别时将调用笔记本的摄像头进行训练,界面如下(此段是参考别人的训练方法)
在训练框中的名字栏填写要的存储对应头像的人名。
训练完成后,关闭窗口,自动回调出远程视频连接。
再来测试一下识别能力
同为侧面角度,就能识别出人脸并检测了。
public partial class VideoForm : Form
{
private Image<Bgr, byte> currentImage;//设置当前画面
Image<Gray, byte> result = null;//返回帧
Image<Gray, byte> gray_frame = null;//灰度帧
public HaarCascade Face = new HaarCascade(Application.StartupPath + "/Cascades/haarcascade_frontalface_alt2.xml");//载入训练库数据
MCvFont font = new MCvFont(FONT.CV_FONT_HERSHEY_COMPLEX, 0.5, 0.5);//设置摄像头字体
//Classifier with default training location
Classifier_Train Eigen_Recog = new Classifier_Train();//实例化一个分类训练器
public VideoForm()
{
InitializeComponent();
}
private void showVideo(object sender, EventArgs e)
{ MyCaputre myCap = new MyCaputre();
string sourceURL = this.textBox1.Text;
Bitmap bmp = myCap.myCaputre(sourceURL);
currentImage = new Image<Bgr, byte>(bmp);
markFace(currentImage);
pictureBox1.Image = new System.Drawing.Bitmap(currentImage.ToBitmap(), 850, 660);
}
private Image<Bgr, byte> markFace(Image<Bgr, byte> pic)
{
currentImage =currentImage.Resize(320, 240, Emgu.CV.CvEnum.INTER.CV_INTER_CUBIC);
if (currentImage != null)
{
gray_frame = currentImage.Convert<Gray, Byte>();
MCvAvgComp[][] facesDetected = gray_frame.DetectHaarCascade(Face, 1.2, 10, Emgu.CV.CvEnum.HAAR_DETECTION_TYPE.DO_CANNY_PRUNING, new Size(50, 50));

2013年04月01日 23点04分 1
level 1
求楼主帮忙!!! QQ详谈 195251036 必有酬谢
2013年04月29日 14点04分 4
已发
2013年05月31日 16点05分
有只识别移动的物体吗?能跟踪目标,显示速度,轨迹
2015年11月18日 15点11分
您好在吗
2017年05月16日 14点05分
level 3
楼主好厉害,我的毕设会用到opencv进行人脸识别,不知道
lz
的程序在近红外的图片下能否执行,顺便求一下源程序,参考一下,O(∩_∩)O谢谢! [email protected]
2013年05月08日 02点05分 6
这个我没有试过 也许能够吧
2013年05月10日 14点05分
已发
2013年05月31日 16点05分
回复 whbledream :同求完整源程序,邮箱:[email protected],大神威武~
2013年06月09日 09点06分
回复 whbledream :同求完整源程序,邮箱:[email protected],大神威武~
2013年06月09日 09点06分
level 1
你的这个程序在opencv里面可以运行不?
2013年05月12日 03点05分 7
使用的就是opencv的c#版
2013年06月29日 11点06分
@whbledream :请问楼
#C#
版的opencv怎么下载配置啊
2015年12月16日 11点12分
@zgt158618 emgu cv
2017年05月25日 15点05分
level 5
原来楼主是来招商的~学好来抢生意
2013年05月21日 16点05分 10
level 7
有吧主?
2013年05月22日 10点05分 11
level 1
楼主能否发送下对应的源码程序,不胜感激了[呵呵]
QQ:[email protected]
2013年05月29日 03点05分 12
已发
2013年05月31日 16点05分
可以发我一下吗
2018年12月19日 04点12分
level 1
刚接触emgu 求源码。 [email protected]
2013年06月03日 05点06分 15
level 1
先膜拜一下楼主~我现在在做智能小车,用到摄像头识别障碍物,觉得你的人脸识别很有参考价值。不知楼主可否发我程序?[email protected]。万分感谢
2013年06月06日 01点06分 17
代码地址查看28楼回帖
2013年07月04日 13点07分
请问您小车上是用无线摄像头吗?
2016年05月22日 12点05分
level 1
可以麻烦你发一份代码么?谢谢!!![大拇指][email protected]
2013年06月16日 18点06分 18
代码地址查看28楼回帖
2013年07月04日 13点07分
level 1
[email protected] 谢了~~~~~
2013年06月18日 09点06分 20
代码地址查看28楼回帖
2013年07月04日 13点07分
level 2
求楼主帮忙,人脸检测中怎么把最亮的,最暗的,均值最小的脸都找出来
2013年06月25日 10点06分 21
人脸的识别跟脸的角度有关,一般正面都好识别 识别前对图像均衡化试试
2013年06月29日 11点06分
level 4
楼主人才,鄙人现在正在做一个小项目,需要opencv的相关内容,求发,[email protected]
2013年06月26日 15点06分 22
我的已经改动太大了 你可以在opencv中文官方网站上有详细的例子 可参考
2013年06月29日 11点06分
level 1
楼主,给我这里一份源代码,好人一生平安![email protected]
2013年07月01日 12点07分 23
@whbledream 我下下来试试,谢谢LZ
2015年04月29日 09点04分
level 1
顺便还问一下,基于opencv使用C语言写的算法,在WPF里面调用复杂吗?
2013年07月01日 12点07分 24
代码地址查看28楼回帖
2013年07月04日 13点07分
level 1
求源程序 [email protected] 谢谢……
2013年07月01日 14点07分 25
代码地址查看最后一贴回复
2013年07月04日 13点07分
回复 whbledream :多谢楼主,看到了
2013年07月04日 15点07分
level 6
求楼主分享一下源代码[email protected]
不胜感激
2013年07月04日 08点07分 27
1 2 3 4 5 6 尾页