资源简介
人脸识别源码 C# PCA 用C#做学习型人脸识别程序
![](http://www.nz998.com/pic/45784.jpg)
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Emgu.CV;
using Emgu.CV.Structure;
using System.IO;
namespace FaceRecognition
{
/***************
* face recognition
* by Nobi (conmajia@gmail.com)
* May 11th 2012
* this is an experiment
* and based on EmguCV
* all codes are almost standard.
*
* Sergio Andrés Guitérrez Rojas‘s work
* was the start point.
* More features added.
* -- conmajia
*
* use it in anyway as you wish.
* you can keep my name or not.
* it depends on you.
* all that I expect is a nice meal. (haha)
* **************/
public partial class Form1 : Form
{
#region variables
// webcam
Capture webcam;
bool cameraInUse = false;
// cascading lib
HaarCascade faceHaar;
// Font to show name
MCvFont font = new MCvFont(
Emgu.CV.CvEnum.FONT.CV_FONT_HERSHEY_TRIPLEX
1.2
1.2
);
// frame being dealing dealed trained
Image current;
Image gray = null;
// List to store trained faces & people
List> learnedFaces = new List>();
List learnedPeople = new List();
MCvAvgComp[] foundFaces;
#endregion
#region initiates
public Form1()
{
InitializeComponent();
}
private void initHaar(ref HaarCascade h string path)
{
h = new HaarCascade(path);
}
// try load early trained faces
private void loadBackupImages(List> list)
{
//try
//{
// // names stored in /backup/names.txt
// // names delimilited by ‘|‘ (the pipe)
// string nameFileContent
// = File.ReadAllText(Application.StartupPath + “/backup/names.txt“);
// string[] names = nameFileContent.Split(‘|‘);
// foreach (string name in names)
// {
// // load images
// list.Add(
// new Image(
// Application.StartupPath
// + “/backup/face_“
// + name
// + “.bmp“
// )
// );
// // TODO: change list into dictionary
// people.Add(name);
// }
//}
//catch (Exception)
//{
// Console.WriteLine(“Load nothing from backup files.“);
//}
}
#endregio
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-08-26 22:29 FaceRecognition(Unfinished)用C#做学习型人脸识别程序(尝鲜版\
文件 32768 2012-05-11 22:13 FaceRecognition(Unfinished)用C#做学习型人脸识别程序(尝鲜版\FaceRecognition.exe
文件 10652 2012-05-11 22:13 FaceRecognition(Unfinished)用C#做学习型人脸识别程序(尝鲜版\Form1.cs
文件 10332 2012-05-11 22:05 FaceRecognition(Unfinished)用C#做学习型人脸识别程序(尝鲜版\Form1.Designer.cs
文件 506314 2012-05-11 18:15 FaceRecognition(Unfinished)用C#做学习型人脸识别程序(尝鲜版\haarcascade_eye.xm
文件 3644763 2012-05-11 18:15 FaceRecognition(Unfinished)用C#做学习型人脸识别程序(尝鲜版\haarcascade_frontalface_alt_tree.xm
- 上一篇:C#任务管理器实现cpu使用率以及动态网格
- 下一篇:c#串口通信+CRC校验
相关资源
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
- C#语音识别系统speechsdk51,SpeechSDK51L
- 数据库备份还原工具1.0 C# 源码
-
[免费]xm
lDocument 节点遍历C# - EQ2008LEDc#开发实例
- DirectX.Capturec# winform 操作摄像头录像附
- c# 实现的最大最小距离方法对鸢尾花
- C#版保龄球记分代码
- C#自定义控件
- 基于c#的实验室设备管理系统621530
- C# 使用ListView控件实现图片浏览器(源
- C#简单窗体聊天程序
- C#指纹识别系统程序 报告
- c# 高校档案信息管理系统
- c#向word文件插入图片
- C#左侧导航菜单(动态生成)
评论
共有 条评论