fddb数据集的下载地址为fddb
其中的标签格式如下:
<major_axis_radius minor_axis_radius angle center_x center_y 1>.
标签文件里面给出的是个椭圆,其中的angle 是角度,在程序中将其作为偏向左边或者右边的角度(单位为弧度),效果基本吻合。
下面是matlab可视化的一个小程序和效果图。
clear all;
close all;
imgSourceFolder='E:/WorkSpace/matlab/NN/DataSet/face collection/FDDB face/';
for k=1:10
if k<10
filePath=[imgSourceFolder 'FDDB-folds/FDDB-fold-0' num2str(k) '-ellipseList.txt' ];
else
filePath=[imgSourceFolder 'FDDB-folds/FDDB-fold-' num2str(k) '-ellipseList.txt' ];
end
fileIDIn=fopen(filePath,'r');
while (~feof(fileIDIn))
tempName=textscan(fileIDIn,'%s',1,'Delimiter','\n'); %read the file name and path 读文件名和路径
rectnum=cell2mat(textscan(fileIDIn,'%f',1,'Delimiter','\n')); %read the rect number 读取矩形的个数
rect=cell2mat(textscan(fileIDIn,'%f',rectnum*6,'Delimiter','\n')); %read the rect data 读取矩形

博客介绍了如何使用MATLAB读取和可视化FDDB数据集中带角度的椭圆脸部边界,程序读取椭圆参数并绘制,同时用简单矩形框包围椭圆。程序未处理矩形框超出图像边界的情况。
最低0.47元/天 解锁文章
2845

被折叠的 条评论
为什么被折叠?



