• 大小: 2M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-02-12
  • 语言: Matlab
  • 标签: 算法FAR  FRR  +  FAR  face  

资源简介

人脸认证流程,计算人脸认证算法的FAR,FRR

资源截图

代码片段和文件信息

function CreateDB(dbpath clientnum)
%生成Client库和Impostor库
% dbpath=‘./ORL‘; %源数据库路径
%clear;clc;
if ~exist(‘dbpath‘‘var‘)
    error(‘Input arguments error.‘)
end
if ~exist(‘clientnum‘‘var‘)
    clientnum=30;       % default value
end


filedir=dir(dbpath);

dirnum=size(filedir1)-2;
position=randperm(dirnum);

curdir=pwd;         %curdir=d:/FaceVerification
clfilepath=sprintf(‘%s/client.txt‘curdir);          %创建.TXT文档
imfilepath=sprintf(‘%s/impostor.txt‘curdir);
fcl=fopen(clfilepath‘w‘);
fim=fopen(imfilepath‘w‘);

clcount=1;%应该设为0的啊
imcount=1;%应该设为0的啊
for i=1:dirnum
    if position(i)<=clientnum;
        clpath=sprintf(‘%s/%s‘dbpathfiledir(i+21).name);
        fprintf(fcl‘%04d %s %s\r\n‘clcountfiledir(i+21).nameclpath);
        clcount=clcount+1;

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        560  2010-04-08 12:50  FaceVerification\client.txt

     文件       1043  2009-06-24 11:32  FaceVerification\CreateDb.asv

     文件       1043  2009-06-24 11:34  FaceVerification\CreateDb.m

     文件       2890  2008-04-14 19:58  FaceVerification\CreateSets.m

     文件        779  2009-06-24 15:09  FaceVerification\EuclideanDistance.m

     文件       8979  2009-06-24 16:04  FaceVerification\Evaluation.asv

     文件       8979  2009-06-24 16:06  FaceVerification\Evaluation.m

     文件       1431  2010-04-08 12:50  FaceVerification\evaluation.txt

     文件       4324  2009-08-01 10:34  FaceVerification\FaceVerification.asv

     文件       4324  2009-08-01 10:34  FaceVerification\FaceVerification.m

     文件        182  2010-04-08 12:50  FaceVerification\impostor.txt

     文件       1598  2008-04-14 19:59  FaceVerification\LDAQR.m

     文件       1691  2009-06-24 17:16  FaceVerification\LoadImageSet.m

     文件        872  2007-12-05 19:14  FaceVerification\NormaliseCorrelation.m

     文件         57  2010-04-08 12:51  FaceVerification\result.txt

     文件        711  2010-04-08 12:50  FaceVerification\test.txt

     文件        895  2010-04-08 12:50  FaceVerification\train.txt

     文件       4220  2007-12-05 22:12  FaceVerification\Verification.m

     文件       1037  2007-11-01 16:22  FaceVerification\AR\s1\1.jpg

     文件       1014  2007-11-01 16:23  FaceVerification\AR\s1\2.jpg

     文件       1008  2007-11-01 16:23  FaceVerification\AR\s1\3.jpg

     文件       1018  2007-11-01 16:22  FaceVerification\AR\s1\4.jpg

     文件       1051  2007-11-01 16:23  FaceVerification\AR\s1\5.jpg

     文件       1020  2007-11-01 16:23  FaceVerification\AR\s1\6.jpg

     文件       1028  2007-11-01 16:22  FaceVerification\AR\s1\7.jpg

     文件        999  2007-11-01 16:22  FaceVerification\AR\s1\8.jpg

    ..A.SH.     17408  2010-04-07 20:52  FaceVerification\AR\s1\Thumbs.db

     文件       1046  2007-11-01 16:26  FaceVerification\AR\s10\1.jpg

     文件       1043  2007-11-01 16:26  FaceVerification\AR\s10\2.jpg

     文件       1043  2007-11-01 16:26  FaceVerification\AR\s10\3.jpg

............此处省略1165个文件信息

评论

共有 条评论