• 大小: 4.18MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-29
  • 语言: 其他
  • 标签: adaboost  

资源简介

这是一篇关于人脸表情识别的论文,内附有源代码以及一篇非常好的论文(实时检测),代码已经过测试可用,自己编的,希望可以对初学的人有所帮助

资源截图

代码片段和文件信息

function [data_2 index weight] = f_select(data_2label_2weight)
label_num = size(label_22);
[feature_num tr_num] = size(data_2);
if label_num ~= tr_num
    fprintf(‘no match‘)
end
err = zeros(feature_num1);
in = cell(feature_num1);
for i =1:feature_num
    feature = data_2(i:);
    fea_w = sort(feature);  
    [Err In] = getErr(feature fea_w label_2 weight);
    err(i) = Err;
    in{i} = In;
end
[value index] = min(err);%第index个特征
%更改权重
beta = value/(1-value);
I = in{index};

weight = weight.*beta.^(1-I);
%将第index个特征对应的所有特征值置为0
if index == 1
    data_2 = data_2(2:end:);
else if index == feature_num
        data_2 = data_2(1:end-1:);
    else data_2 = [data_2(1:(index-1):);data_2((index+1):end:)];
    end
end
    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2010-12-21 10:47  adaboost_ two classes\
     文件      810957  2010-12-15 21:58  adaboost_ two classes\57结合Gabor特征与Adaboost的人脸表情识别.pdf
     文件      324119  2007-11-16 00:00  adaboost_ two classes\ADB_RealTimeFaceDetection[文献10].pdf
     文件      888816  2010-11-24 16:17  adaboost_ two classes\data_label.mat
     文件         767  2010-12-20 19:41  adaboost_ two classes\f_select.asv
     文件         791  2010-12-20 19:44  adaboost_ two classes\f_select.m
     文件        1003  2010-11-24 17:09  adaboost_ two classes\getCorr.m
     文件        1087  2010-12-19 19:59  adaboost_ two classes\getErr.asv
     文件        1097  2010-12-19 20:03  adaboost_ two classes\getErr.m
     文件         662  2010-12-16 10:35  adaboost_ two classes\getfeature.m
     文件      897625  2010-12-20 09:40  adaboost_ two classes\matlab试验.mat
     文件          41  2010-12-19 21:26  adaboost_ two classes\TXN2.m
     文件      888946  2010-12-20 10:01  adaboost_ two classes\【13】featureADA_2类数据.mat
     文件      888930  2010-12-20 09:58  adaboost_ two classes\【6】feature_ada2类.mat

评论

共有 条评论