This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Creating Own Face Cropper to Generate Data Set. | |
import cv2,os | |
import numpy as np | |
# Load HAAR face classifier | |
face_classifier = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') | |
# Load functions | |
def face_extractor(img): | |
# Function detects faces and returns the cropped face |
NewerOlder