资源简介
基于AdaBoost算法的人脸检测,包含harr特征的训练和data。经过实测是可以运行起来的代码。需要的可自行下载。
代码片段和文件信息
% CSCi 5561 Spring 2015 - Semester Project
% Authors: Stephen Peyton Chee Yi Ong
% Team: Who Is This (WIT)
% calcHaarVal.m - computes intensity differences between white/black region of Haar features
function val = calcHaarVal(imghaarpixelXpixelYhaarXhaarY)
% img: integral image of an input image
% haar: which Haar feature (1-5)
% pixelX/Y: start point in (XY)
% haarX/Y: Haar feature size in X and Y directions
% getCorners() finds the total of the pixel intensity values in a white/black “box“
moveX = haarX-1;
moveY = haarY-1;
if haar == 1 % top/down white-black
white = getCorners(imgpixelXpixelYpixelX+moveXpixelY+floor(moveY/2));
black = getCorners(imgpixelXpixelY+ceil(moveY/2)pixelX+moveXpixelY+moveY);
val = white-black;
elseif haar == 2 % left/right white-black
white = getCorners(imgpixelXpixelYpixelX+floor(moveX/2)pixelY+moveY);
black = getCorners(imgpixelX+ceil(moveX/2)pixelYpixelX+moveXpixelY+moveY);
val = white-black;
elseif haar == 3 % top/mid/bottom white-black-white
white1 = getCorners(imgpixelXpixelYpixelX+moveXpixelY+floor(moveY/3));
black = getCorners(imgpixelXpixelY+ceil(moveY/3)pixelX+moveXpixelY+floor((moveY)*(2/3)));
white2 = getCorners(imgpixelXpixelY+ceil((moveY)*(2/3))pixelX+moveXpixelY+moveY);
val = white1 + white2 - black;
elseif haar == 4 % left/mid/right white-black-white
white1 = getCorners(imgpixelXpixelYpixelX+floor(moveX/3)pixelY+moveY);
black = getCorners(imgpixelX+ceil(moveX/3)pixelYpixelX+floor((moveX)*(2/3))pixelY+moveY);
white2 = getCorners(imgpixelX+ceil((moveX)*(2/3))pixelYpixelX+moveXpixelY+moveY);
val = white1 + white2 - black;
elseif haar == 5 % checkerboard-style white-black-white-black
white1 = getCorners(imgpixelXpixelYpixelX+floor(moveX/2)pixelY+floor(moveY/2));
black1 = getCorners(imgpixelX+ceil(moveX/2)pixelYpixelX+moveXpixelY+floor(moveY/2));
black2 = getCorners(imgpixelXpixelY+ceil(moveY/2)pixelX+floor(moveX/2)pixelY+moveY);
white2 = getCorners(imgpixelX+ceil(moveX/2)pixelY+ceil(moveY/2)pixelX+moveXpixelY+moveY);
val = white1+white2-(black1+black2);
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-03-21 19:22 AdaBoost算法训练样本\matlab-viola-jones-master\
文件 86 2019-03-21 19:23 AdaBoost算法训练样本\matlab-viola-jones-master\imread.txt
目录 0 2019-03-26 20:21 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\
目录 0 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\
文件 2211 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\calcHaarVal.m
文件 1100 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\cascade.m
文件 5090 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\detectFaces.asv
文件 5100 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\detectFaces.m
文件 476 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\getCorners.m
目录 0 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\Images\
文件 21946 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\Images\baby.jpg
文件 30638 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\Images\cy.jpg
文件 41160 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\Images\cy2.jpg
文件 30969 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\Images\cy3.jpg
文件 10475 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\Images\girl.jpg
文件 28043 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\Images\Jie.jpg
文件 99702 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\Images\Jie_checkered.jpg
文件 23949 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\Images\Lenna.jpg
文件 9581 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\Images\Lenna_gamma_corrected.jpg
文件 30817 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\Images\Sourav.jpg
文件 32951 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\Images\Steve.jpg
文件 23821 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\Images\Steve2.jpg
文件 408 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\integralImg.m
目录 0 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\Preprocessing\
文件 1081 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\Preprocessing\adjust_range.m
文件 1212 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\Preprocessing\gamma_correction.m
目录 0 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\Results\
文件 10340 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\Results\baby.jpg
文件 15897 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\Results\cy.jpg
文件 11563 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\Results\Jie.jpg
文件 15012 2016-07-19 16:55 AdaBoost算法训练样本\matlab-viola-jones-master\matlab-viola-jones-master\detectFaces\Results\O_expr.jpg
............此处省略6992个文件信息
相关资源
-
DSM调制器simuli
nk建模仿真.rar - ARM官方DSP库FIR滤波器的实现
- Matlab经典教程——从入门到精通(原
- matlab3D表面与体绘制数据及代码
- Matlab Neural Network Toolbox documentation.pd
- MMC-HVDC模型预测控制
- 集合卡尔曼滤波算法-数据同化的经典
-
MATLAB/Simuli
nk for Digital Communication - 使用 Matlab 生成可供 DSP C6748 使用的算
- 几个常用到的matlab图像处理工具箱
- SeDuMi_1_3.zip
- 基于MATLAB的系统分析与设计-模糊系统
- 基于模糊PID控制无刷直流电动机调速
- FAM和SSCA算法的matlab源程序-detection a
- matlab delaunary 三维点云三角化
- BM3D滤波算法+BM3D_image,可实现
- Robust Control Design with MATLAB一本非常经
- Windows6.1-KB3163245-x64.msu
- Linear Feedback Control Analysis and Design wi
- digital image correlation
- MATLAB_智能算法30个案例分析pdf+源码
- 基于MATLAB的模糊PID控制器的设计
- 机器学习工具包spider工具包
- matlab自带HHT算法,最简洁的EMD分解
-
2DPSK调制解调simuli
nk仿真及matlab程序 - 图像DCT域信息隐藏实验
- 人口预测模型
- 二维齐次热传导方程的ADI格式含MATL
- dace.rar+Kriging+surrogate model
- Model+Predictive Control System Design and Imp
评论
共有 条评论