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)
apply_face_detection.py 文件源码
python
阅读 24
收藏 0
点赞 0
评论 0
评论列表
文章目录