Skip to content

Instantly share code, notes, and snippets.

View tann21's full-sized avatar
💭
I may be slow to respond.

tann21

💭
I may be slow to respond.
View GitHub Profile
import sys, cv2
# Refactored https://realpython.com/blog/python/face-recognition-with-python/
def cascade_detect(cascade, image):
gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
return cascade.detectMultiScale(
gray_image,
scaleFactor = 1.15,
minNeighbors = 5,