资源简介
一个简单的表情识别软件。利用贝塞尔曲线匹配嘴唇,眼睛识别表情。

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
namespace sobel_filtering
{
class All_filters
{
public All_filters()
{
}
public Bitmap gray(Bitmap Im)
{
Bitmap b = (Bitmap)Im;
for (int i = 1; i < b.Height; i++) // loop for the image pixels height
{
for (int j = 1; j < b.Width; j++) // loop for the image pixels width
{
Color col;
col = b.GetPixel(j i);
b.SetPixel(j i Color.FromArgb((col.R + col.G + col.B) / 3 (col.R + col.G + col.B) / 3 (col.R + col.G + col.B) / 3));
}
}
return (Bitmap)b;
}
public Bitmap mean_filter(Bitmap bp)
{
Bitmap bp1;
bp1 = bp;
int red blue green count;
for (int i = 0; i < bp.Width; i++)
{
for (int j = 0; j < bp.Height; j++)
{
red=0;
blue = 0;
green=0 ;
count = 0;
if (i + 1 < bp.Width && j + 1 < bp.Height)
{
red += bp.GetPixel(i + 1 j + 1).R;
blue += bp.GetPixel(i + 1 j + 1).B;
green += bp.GetPixel(i + 1 j + 1).G;
count++;
}
if (i + 1 < bp.Width && j - 1 >=0)
{
red += bp.GetPixel(i + 1 j - 1).R;
blue += bp.GetPixel(i + 1 j - 1).B;
green += bp.GetPixel(i + 1 j - 1).G;
count++;
}
if (i - 1 >=0 && j + 1 < bp.Height)
{
red += bp.GetPixel(i - 1 j + 1).R;
blue += bp.GetPixel(i - 1 j + 1).B;
green += bp.GetPixel(i - 1 j + 1).G;
count++;
}
if (i - 1 >=0 && j - 1 >=0)
{
red += bp.GetPixel(i - 1 j - 1).R;
blue += bp.GetPixel(i - 1 j - 1).B;
green += bp.GetPixel(i - 1 j - 1).G;
count++;
}
if (j + 1 < bp.Height)
{
red += bp.GetPixel(i j + 1).R;
blue += bp.GetPixel(i j + 1).B;
green += bp.GetPixel(i j + 1).G;
count++;
}
if (i + 1 < bp.Width)
{
red += bp.GetPixel(i + 1 j ).R;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2010-09-18 15:43 Emotion Detaction\
目录 0 2010-09-18 15:52 Emotion Detaction\sobel filtering\
文件 21566 2008-07-17 23:37 Emotion Detaction\sobel filtering\All_filters.cs
目录 0 2010-09-18 15:49 Emotion Detaction\sobel filtering\bin\
目录 0 2010-09-18 15:56 Emotion Detaction\sobel filtering\bin\Debug\
文件 708608 2002-01-01 11:52 Emotion Detaction\sobel filtering\bin\Debug\db1.mdb
文件 183296 2010-09-18 15:52 Emotion Detaction\sobel filtering\bin\Debug\sobel filtering.exe
文件 14328 2010-09-18 15:53 Emotion Detaction\sobel filtering\bin\Debug\sobel filtering.vshost.exe
文件 7412 2008-07-31 11:28 Emotion Detaction\sobel filtering\Convolution.cs
文件 5321 2008-07-31 11:28 Emotion Detaction\sobel filtering\Convolution.resx
文件 11044 2008-07-31 11:28 Emotion Detaction\sobel filtering\Filters.cs
文件 228634 2010-09-18 15:51 Emotion Detaction\sobel filtering\Form1.cs
文件 17017 2008-06-04 23:55 Emotion Detaction\sobel filtering\Form1.Designer.cs
文件 6427 2008-06-04 23:55 Emotion Detaction\sobel filtering\Form1.resx
文件 98001 2010-09-18 15:52 Emotion Detaction\sobel filtering\Form2.cs
文件 14823 2008-06-04 23:53 Emotion Detaction\sobel filtering\Form2.Designer.cs
文件 5814 2008-06-04 23:53 Emotion Detaction\sobel filtering\Form2.resx
文件 5264 2008-07-28 05:39 Emotion Detaction\sobel filtering\Form_preview.cs
文件 3829 2008-07-28 05:39 Emotion Detaction\sobel filtering\Form_preview.Designer.cs
文件 5814 2008-07-28 05:39 Emotion Detaction\sobel filtering\Form_preview.resx
文件 5947 2008-07-08 04:54 Emotion Detaction\sobel filtering\LogicalOperator.cs
文件 3181 2008-07-31 12:00 Emotion Detaction\sobel filtering\Parameter.cs
文件 5319 2008-07-31 12:00 Emotion Detaction\sobel filtering\Parameter.resx
文件 482 2008-02-11 17:58 Emotion Detaction\sobel filtering\Program.cs
目录 0 2010-09-18 15:42 Emotion Detaction\sobel filtering\Properties\
文件 1286 2008-02-11 17:58 Emotion Detaction\sobel filtering\Properties\AssemblyInfo.cs
文件 4369 2010-09-18 15:42 Emotion Detaction\sobel filtering\Properties\Resources.Designer.cs
文件 7415 2008-01-16 12:31 Emotion Detaction\sobel filtering\Properties\Resources.resx
文件 1096 2010-09-18 15:43 Emotion Detaction\sobel filtering\Properties\Settings.Designer.cs
文件 249 2008-02-11 17:58 Emotion Detaction\sobel filtering\Properties\Settings.settings
目录 0 2010-09-18 15:42 Emotion Detaction\sobel filtering\Resources\
............此处省略56个文件信息
相关资源
- C# OCR数字识别实例,采用TessnetOcr,对
- 考试管理系统 - C#源码
- asp.net C#购物车源代码
- C#实时网络流量监听源码
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- 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
评论
共有 条评论