def resize(image):
"""Resize a face image to the proper size for training and detection.
"""
return cv2.resize(image, (config.get("face_width"), config.get("face_height")), interpolation=cv2.INTER_LANCZOS4)
文章目录