Skip to content

Instantly share code, notes, and snippets.

View Rishbah-76's full-sized avatar
🎯
Working on Better Build

Rishabh Rishbah-76

🎯
Working on Better Build
View GitHub Profile
@Rishbah-76
Rishbah-76 / DataCollection.py
Last active June 23, 2021 05:06
Collecting our face data as Images and storing it in ./faces/user and Training it later for Face Recognition.
# 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