apply_face_detection.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:facial-emotion-detection-dl 作者: dllatas 项目源码 文件源码
def main(argv=None):  # pylint: disable=unused-argument
    face_cascade = cv2.CascadeClassifier("/home/neo/opencv-3.1.0/data/haarcascades/haarcascade_frontalface_default.xml")
    #image_path = "/home/neo/projects/deepLearning/data/image_exp2/"
    #image_path = "/home/neo/projects/deepLearning/data/ck_image_seq_10"
    image_path = "/home/neo/projects/deepLearning/data/amfed/happy"
    #dest_path = "/home/neo/projects/deepLearning/data/crop_faces_seq_10/"
    dest_path = "/home/neo/projects/deepLearning/data/amfed_faces"
    faces_to_detect = 1
    get_images(image_path, face_cascade, dest_path, faces_to_detect)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号