資源簡介
MATLAB實現(xiàn)的人臉檢測代碼,CVPR2015級聯(lián)CNN,按照流程實現(xiàn),效果絕佳
代碼片段和文件信息
import?cv2
import?os
data_base_dir?=?“/home/anson/face_pictures/AFLW/aflw_images“?????#?file?containing?pictures
read_file_name_faces?=?“/home/anson/face_pictures/AFLW/AFLW_Faces.txt“???#?file?saving?face?ID?and?corresponding?files
read_file_name_rect?=?“/home/anson/face_pictures/AFLW/AFLW_Rect.txt“????#?file?saving?rect?info?corresponding?to?face?ID
faceID_fileName_dict?=?{}???#?dictionary?of?str?to?str
#?===========?read?face?file?===============
with?open(read_file_name_faces?“r“)?as?ins:
????array_faces?=?[]
????for?line?in?ins:
????????line?=?line.replace(‘‘?‘?‘)???#?get?rid?of?commas?and?quotes
????????array_faces.append(line.replace(‘“‘?‘‘))??????#?list?of?strings
array_faces?=?array_faces[1:]???#?ignore?header
number_of_lines?=?len(array_faces)
#?===========?construct?dict
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-12-22?15:30??CNN_face_detection-master\
?????文件????????1168??2015-12-22?15:30??CNN_face_detection-master\README.md
?????目錄???????????0??2015-12-22?15:30??CNN_face_detection-master\face_calibration\
?????目錄???????????0??2015-12-22?15:30??CNN_face_detection-master\face_calibration\.idea\
?????文件??????????16??2015-12-22?15:30??CNN_face_detection-master\face_calibration\.idea\.name
?????文件?????????284??2015-12-22?15:30??CNN_face_detection-master\face_calibration\.idea\face_calibration.iml
?????文件?????????688??2015-12-22?15:30??CNN_face_detection-master\face_calibration\.idea\misc.xm
?????文件?????????284??2015-12-22?15:30??CNN_face_detection-master\face_calibration\.idea\modules.xm
?????文件?????????164??2015-12-22?15:30??CNN_face_detection-master\face_calibration\.idea\vcs.xm
?????文件???????24261??2015-12-22?15:30??CNN_face_detection-master\face_calibration\.idea\workspace.xm
?????文件????????3626??2015-12-22?15:30??CNN_face_detection-master\face_calibration\calibration_AFLW.py
?????文件????????2131??2015-12-22?15:30??CNN_face_detection-master\face_calibration\calibration_CACD.py
?????文件?????????953??2015-12-22?15:30??CNN_face_detection-master\face_calibration\shuffle_write_calibration.py
?????文件????????2505??2015-12-22?15:30??CNN_face_detection-master\face_calibration\write_train_val_calibration.py
?????目錄???????????0??2015-12-22?15:30??CNN_face_detection-master\face_detection\
?????目錄???????????0??2015-12-22?15:30??CNN_face_detection-master\face_detection\.idea\
?????文件???????????8??2015-12-22?15:30??CNN_face_detection-master\face_detection\.idea\.name
?????文件?????????688??2015-12-22?15:30??CNN_face_detection-master\face_detection\.idea\misc.xm
?????文件?????????268??2015-12-22?15:30??CNN_face_detection-master\face_detection\.idea\modules.xm
?????文件?????????346??2015-12-22?15:30??CNN_face_detection-master\face_detection\.idea\unti
?????文件?????????164??2015-12-22?15:30??CNN_face_detection-master\face_detection\.idea\vcs.xm
?????文件???????51896??2015-12-22?15:30??CNN_face_detection-master\face_detection\.idea\workspace.xm
?????文件??????431184??2015-12-22?15:30??CNN_face_detection-master\face_detection\DiscROC.txt
?????目錄???????????0??2015-12-22?15:30??CNN_face_detection-master\face_detection\FDDB-fold\
?????文件????????6747??2015-12-22?15:30??CNN_face_detection-master\face_detection\FDDB-fold\FDDB-fold-01.txt
?????文件????????6646??2015-12-22?15:30??CNN_face_detection-master\face_detection\FDDB-fold\FDDB-fold-02.txt
?????文件????????6392??2015-12-22?15:30??CNN_face_detection-master\face_detection\FDDB-fold\FDDB-fold-03.txt
?????文件????????7018??2015-12-22?15:30??CNN_face_detection-master\face_detection\FDDB-fold\FDDB-fold-04.txt
?????文件????????6937??2015-12-22?15:30??CNN_face_detection-master\face_detection\FDDB-fold\FDDB-fold-05.txt
?????文件????????7024??2015-12-22?15:30??CNN_face_detection-master\face_detection\FDDB-fold\FDDB-fold-06.txt
?????文件????????6489??2015-12-22?15:30??CNN_face_detection-master\face_detection\FDDB-fold\FDDB-fold-07.txt
............此處省略213個文件信息
評論
共有 條評論