Extract facial features such as the eyes and mouth from MTCNN's predictions and find whether eyes or mouths are closed/open.
extract_facial can be installed using the pip package manager:
pip install extract_facial
import cv2
import extract_facial
img = cv2.imread('person.jpg')
results = detector.detect_faces(img)
extractedRois, extractedCoords = extract_facial.extractRoi(img, 250)
Please check the CONTRIBUTING guidelines for information on how to contribute to extract_facial.