• 大小: 7.98M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-03-13
  • 语言: Matlab
  • 标签: CNN人脸  MATLAB  

资源简介

MATLAB实现的人脸检测代码,CVPR2015级联CNN,按照流程实现,效果绝佳

资源截图

代码片段和文件信息

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.xml
     文件         284  2015-12-22 15:30  CNN_face_detection-master\face_calibration\.idea\modules.xml
     文件         164  2015-12-22 15:30  CNN_face_detection-master\face_calibration\.idea\vcs.xml
     文件       24261  2015-12-22 15:30  CNN_face_detection-master\face_calibration\.idea\workspace.xml
     文件        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.xml
     文件         268  2015-12-22 15:30  CNN_face_detection-master\face_detection\.idea\modules.xml
     文件         346  2015-12-22 15:30  CNN_face_detection-master\face_detection\.idea\untitled.iml
     文件         164  2015-12-22 15:30  CNN_face_detection-master\face_detection\.idea\vcs.xml
     文件       51896  2015-12-22 15:30  CNN_face_detection-master\face_detection\.idea\workspace.xml
     文件      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个文件信息

评论

共有 条评论