widerface的官网给出了其数据集的mat格式的标签,因此一个读取其标签,将人脸扣取出的程序就迫在眉睫。本文的这个程序是一个很普通的程序,但是这个程序经过了验证,处理结果的正确性完全有保证。你可以花1个小时写一个这样的程序,但是你需要花3个小时进行验证和测试。这也就是本程序的意义所在。
本程序实现的功能:
1,读取所有图像,并将人脸图像保存到当前目录的filesave目录下
2,将新生成的图像保存到imagelist.txt中
3,将原始图像保存到train.txt中
4,对原始mat中的不在图像里面的人脸,进行了四舍五入和相应的处理
5,原始mat的人脸是亚像素的,进行了像素级别的处理
其中imagelist.txt和train.txt的格式如下注释所示。
% train.txt数据格式event_list\file_list\numx y w h
% 例如.\0--Parade\0_Parade_marchingband_1_849.jpg1 449 330 121 148
% imagelist.txt数据格式event_list_file_list_num.jpg
% 例如0--Parade_0_Parade_marchingband_1_849_1.jpg
http://www.qipeiren.com/Repair/news-141520.htm
http://www.qipeiren.com/Repair/news-141519.htm
http://www.qipeiren.com/Repair/news-141518.htm
http://www.qipeiren.com/Repair/news-141517.htm
http://www.qipeiren.com/Repair/news-141516.htm
http://www.qipeiren.com/Repair/news-141515.htm
http://www.qipeiren.com/Repair/news-141514.htm
http://www.qipeiren.com/Repair/news-141513.htm
http://www.qipeiren.com/Repair/news-141512.htm
http://www.qipeiren.com/Repair/news-141511.htm
http://www.qipeiren.com/Repair/news-141510.htm
http://www.qipeiren.com/Repair/news-141509.htm
http://www.qipeiren.com/Repair/news-141508.htm
http://www.qipeiren.com/Repair/news-141507.htm
http://www.qipeiren.com/Repair/news-141506.htm
http://www.qipeiren.com/Repair/news-141505.htm
http://www.qipeiren.com/Repair/news-141504.htm
http://www.qipeiren.com/Repair/news-141503.htm
http://www.qipeiren.com/Repair/news-141502.htm
http://www.qipeiren.com/Repair/news-141501.htm
http://www.qipeiren.com/Repair/news-141500.htm
http://www.qipeiren.com/Repair/news-141499.htm
http://www.qipeiren.com/Repair/news-141498.htm
http://www.qipeiren.com/Repair/news-141497.htm
http://www.qipeiren.com/Repair/news-141496.htm
http://www.qipeiren.com/Repair/news-141495.htm
http://www.qipeiren.com/Repair/news-141494.htm
http://www.qipeiren.com/Repair/news-141493.htm
http://www.qipeiren.com/Repair/news-141492.htm
http://www.qipeiren.com/Repair/news-141491.htm
http://www.qipeiren.com/Repair/news-141490.htm
http://www.qipeiren.com/Repair/news-141489.htm
http://www.qipeiren.com/Repair/news-141488.htm
http://www.qipeiren.com/Repair/news-141487.htm
http://www.qipeiren.com/Repair/news-141486.htm
http://www.qipeiren.com/Repair/news-141485.htm
http://www.qipeiren.com/Repair/news-141484.htm
http://www.qipeiren.com/Repair/news-141483.htm
http://www.qipeiren.com/Repair/news-141482.htm
http://www.qipeiren.com/Repair/news-141481.htm
http://www.qipeiren.com/Repair/news-141480.htm
http://www.qipeiren.com/Repair/news-141479.htm
http://www.qipeiren.com/Repair/news-141478.htm
http://www.qipeiren.com/Repair/news-141477.htm
http://www.qipeiren.com/Repair/news-141476.htm
http://www.qipeiren.com/Repair/news-141475.htm
http://www.qipeiren.com/Repair/news-141474.htm
http://www.qipeiren.com/Repair/news-141473.htm
http://www.qipeiren.com/Repair/news-141472.htm
http://www.qipeiren.com/Repair/news-141471.htm
http://www.qipeiren.com/Repair/news-141470.htm
http://www.qipeiren.com/Repair/news-141469.htm
http://www.qipeiren.com/Repair/news-141468.htm
http://www.qipeiren.com/Repair/news-141467.htm
http://www.qipeiren.com/Repair/news-141466.htm
http://www.qipeiren.com/Repair/news-141465.htm
http://www.qipeiren.com/Repair/news-141464.htm
http://www.qipeiren.com/Repair/news-141463.htm
http://www.qipeiren.com/Repair/news-141462.htm
http://www.qipeiren.com/Repair/news-141461.htm
http://www.qipeiren.com/Repair/news-141460.htm
http://www.qipeiren.com/Repair/news-141459.htm
http://www.qipeiren.com/Repair/news-141458.htm
http://www.qipeiren.com/Repair/news-141457.htm
http://www.qipeiren.com/Repair/news-141456.htm
http://www.qipeiren.com/Repair/news-141455.htm
http://www.qipeiren.com/Repair/news-141454.htm
http://www.qipeiren.com/Repair/news-141453.htm
http://www.qipeiren.com/Repair/news-141452.htm
http://www.qipeiren.com/Repair/news-141451.htm
http://www.qipeiren.com/Repair/news-141450.htm
http://www.qipeiren.com/Repair/news-141449.htm
http://www.qipeiren.com/Repair/news-141448.htm
http://www.qipeiren.com/Repair/news-141447.htm
http://www.qipeiren.com/Repair/news-141446.htm
http://www.qipeiren.com/Repair/news-141445.htm
http://www.qipeiren.com/Repair/news-141444.htm
http://www.qipeiren.com/Repair/news-141443.htm
http://www.qipeiren.com/Repair/news-141442.htm
http://www.qipeiren.com/Repair/news-141441.htm
http://www.qipeiren.com/Repair/news-141440.htm
http://www.qipeiren.com/Repair/news-141439.htm
http://www.qipeiren.com/Repair/news-141438.htm
http://www.qipeiren.com/Repair/news-141437.htm
http://www.qipeiren.com/Repair/news-141436.htm
http://www.qipeiren.com/Repair/news-141435.htm
http://www.qipeiren.com/Repair/news-141434.htm
http://www.qipeiren.com/Repair/news-141433.htm
http://www.qipeiren.com/Repair/news-141432.htm
http://www.qipeiren.com/Repair/news-141431.htm
http://www.qipeiren.com/Repair/news-141430.htm
http://www.qipeiren.com/Repair/news-141429.htm
http://www.qipeiren.com/Repair/news-141428.htm
http://www.qipeiren.com/Repair/news-141427.htm
http://www.qipeiren.com/Repair/news-141426.htm
http://www.qipeiren.com/Repair/news-141425.htm
http://www.qipeiren.com/Repair/news-141424.htm
http://www.qipeiren.com/Repair/news-141423.htm
http://www.qipeiren.com/Repair/news-141422.htm
http://www.qipeiren.com/Repair/news-141421.htm
http://www.qipeiren.com/Repair/news-141420.htm
http://www.qipeiren.com/Repair/news-141419.htm
http://www.qipeiren.com/Repair/news-141418.htm
http://www.qipeiren.com/Repair/news-141417.htm
http://www.qipeiren.com/Repair/news-141416.htm
http://www.qipeiren.com/Repair/news-141415.htm
http://www.qipeiren.com/Repair/news-141414.htm
http://www.qipeiren.com/Repair/news-141413.htm
http://www.qipeiren.com/Repair/news-141412.htm
http://www.qipeiren.com/Repair/news-141411.htm
http://www.qipeiren.com/Repair/news-141410.htm
http://www.qipeiren.com/Repair/news-141409.htm
http://www.qipeiren.com/Repair/news-141408.htm
http://www.qipeiren.com/Repair/news-141407.htm
http://www.qipeiren.com/Repair/news-141406.htm
http://www.qipeiren.com/Repair/news-141405.htm
http://www.qipeiren.com/Repair/news-141404.htm
http://www.qipeiren.com/Repair/news-141403.htm
http://www.qipeiren.com/Repair/news-141402.htm
http://www.qipeiren.com/Repair/news-141401.htm
http://www.qipeiren.com/Repair/news-141400.htm
http://www.qipeiren.com/Repair/news-141399.htm
http://www.qipeiren.com/Repair/news-141398.htm
http://www.qipeiren.com/Repair/news-141397.htm
http://www.qipeiren.com/Repair/news-141396.htm
http://www.qipeiren.com/Repair/news-141395.htm
http://www.qipeiren.com/Repair/news-141394.htm
http://www.qipeiren.com/Repair/news-141393.htm
http://www.qipeiren.com/Repair/news-141392.htm
http://www.qipeiren.com/News/news-141520.htm
http://www.qipeiren.com/News/news-141519.htm
http://www.qipeiren.com/News/news-141518.htm
http://www.qipeiren.com/News/news-141517.htm
http://www.qipeiren.com/News/news-141516.htm
http://www.qipeiren.com/News/news-141515.htm
http://www.qipeiren.com/News/news-141514.htm
http://www.qipeiren.com/News/news-141513.htm
http://www.qipeiren.com/News/news-141512.htm
http://www.qipeiren.com/News/news-141511.htm
http://www.qipeiren.com/News/news-141510.htm
http://www.qipeiren.com/News/news-141509.htm
http://www.qipeiren.com/News/news-141508.htm
http://www.qipeiren.com/News/news-141507.htm
http://www.qipeiren.com/News/news-141506.htm
http://www.qipeiren.com/News/news-141505.htm
http://www.qipeiren.com/News/news-141504.htm
http://www.qipeiren.com/News/news-141503.htm
http://www.qipeiren.com/News/news-141502.htm
http://www.qipeiren.com/News/news-141501.htm
http://www.qipeiren.com/News/news-141500.htm
http://www.qipeiren.com/News/news-141499.htm
http://www.qipeiren.com/News/news-141498.htm
http://www.qipeiren.com/News/news-141497.htm
http://www.qipeiren.com/News/news-141496.htm
http://www.qipeiren.com/News/news-141495.htm
http://www.qipeiren.com/News/news-141494.htm
http://www.qipeiren.com/News/news-141493.htm
http://www.qipeiren.com/News/news-141492.htm
http://www.qipeiren.com/News/news-141491.htm
http://www.qipeiren.com/News/news-141490.htm
http://www.qipeiren.com/News/news-141489.htm
http://www.qipeiren.com/News/news-141488.htm
http://www.qipeiren.com/News/news-141487.htm
http://www.qipeiren.com/News/news-141486.htm
http://www.qipeiren.com/News/news-141485.htm
http://www.qipeiren.com/News/news-141484.htm
http://www.qipeiren.com/News/news-141483.htm
http://www.qipeiren.com/News/news-141482.htm
http://www.qipeiren.com/News/news-141481.htm
http://www.qipeiren.com/News/news-141480.htm
http://www.qipeiren.com/News/news-141479.htm
http://www.qipeiren.com/News/news-141478.htm
http://www.qipeiren.com/News/news-141477.htm
http://www.qipeiren.com/News/news-141476.htm
http://www.qipeiren.com/News/news-141475.htm
http://www.qipeiren.com/News/news-141474.htm
http://www.qipeiren.com/News/news-141473.htm
http://www.qipeiren.com/News/news-141472.htm
http://www.qipeiren.com/News/news-141471.htm
http://www.qipeiren.com/News/news-141470.htm
http://www.qipeiren.com/News/news-141469.htm
http://www.qipeiren.com/News/news-141468.htm
http://www.qipeiren.com/News/news-141467.htm
http://www.qipeiren.com/News/news-141466.htm
http://www.qipeiren.com/News/news-141465.htm
http://www.qipeiren.com/News/news-141464.htm
http://www.qipeiren.com/News/news-141463.htm
http://www.qipeiren.com/News/news-141462.htm
http://www.qipeiren.com/News/news-141461.htm
http://www.qipeiren.com/News/news-141460.htm
http://www.qipeiren.com/News/news-141459.htm
http://www.qipeiren.com/News/news-141458.htm
http://www.qipeiren.com/News/news-141457.htm
http://www.qipeiren.com/News/news-141456.htm
http://www.qipeiren.com/News/news-141455.htm
http://www.qipeiren.com/News/news-141454.htm
http://www.qipeiren.com/News/news-141453.htm
http://www.qipeiren.com/News/news-141452.htm
http://www.qipeiren.com/News/news-141451.htm
http://www.qipeiren.com/News/news-141450.htm
http://www.qipeiren.com/News/news-141449.htm
http://www.qipeiren.com/News/news-141448.htm
http://www.qipeiren.com/News/news-141447.htm
http://www.qipeiren.com/News/news-141446.htm
http://www.qipeiren.com/News/news-141445.htm
http://www.qipeiren.com/News/news-141444.htm
http://www.qipeiren.com/News/news-141443.htm
http://www.qipeiren.com/News/news-141442.htm
http://www.qipeiren.com/News/news-141441.htm
http://www.qipeiren.com/News/news-141440.htm
http://www.qipeiren.com/News/news-141439.htm
http://www.qipeiren.com/News/news-141438.htm
http://www.qipeiren.com/News/news-141437.htm
http://www.qipeiren.com/News/news-141436.htm
http://www.qipeiren.com/News/news-141435.htm
http://www.qipeiren.com/News/news-141434.htm
http://www.qipeiren.com/News/news-141433.htm
http://www.qipeiren.com/News/news-141432.htm
http://www.qipeiren.com/News/news-141431.htm
http://www.qipeiren.com/News/news-141430.htm
http://www.qipeiren.com/News/news-141429.htm
http://www.qipeiren.com/News/news-141428.htm
http://www.qipeiren.com/News/news-141427.htm
http://www.qipeiren.com/News/news-141426.htm
http://www.qipeiren.com/News/news-141425.htm
http://www.qipeiren.com/News/news-141424.htm
http://www.qipeiren.com/News/news-141423.htm
http://www.qipeiren.com/News/news-141422.htm
http://www.qipeiren.com/News/news-141421.htm
http://www.qipeiren.com/News/news-141420.htm
http://www.qipeiren.com/News/news-141419.htm
http://www.qipeiren.com/News/news-141418.htm
http://www.qipeiren.com/News/news-141417.htm
http://www.qipeiren.com/News/news-141416.htm
http://www.qipeiren.com/News/news-141415.htm
http://www.qipeiren.com/News/news-141414.htm
http://www.qipeiren.com/News/news-141413.htm
http://www.qipeiren.com/News/news-141412.htm
http://www.qipeiren.com/News/news-141411.htm
http://www.qipeiren.com/News/news-141410.htm
http://www.qipeiren.com/News/news-141409.htm
http://www.qipeiren.com/News/news-141408.htm
http://www.qipeiren.com/News/news-141407.htm
http://www.qipeiren.com/News/news-141406.htm
http://www.qipeiren.com/News/news-141405.htm
http://www.qipeiren.com/News/news-141404.htm
http://www.qipeiren.com/News/news-141403.htm
http://www.qipeiren.com/News/news-141402.htm
http://www.qipeiren.com/News/news-141401.htm
http://www.qipeiren.com/News/news-141400.htm
http://www.qipeiren.com/News/news-141399.htm
http://www.qipeiren.com/News/news-141398.htm
http://www.qipeiren.com/News/news-141397.htm
http://www.qipeiren.com/News/news-141396.htm
http://www.qipeiren.com/News/news-141395.htm
http://www.qipeiren.com/News/news-141394.htm
http://www.qipeiren.com/News/news-141393.htm
http://www.qipeiren.com/News/news-141392.htm