Using MTCNN for extracting and alignment of faces.
Copy extract.py, extractor.py, and detection folder to the parent directory of the directory containing images.
Use the following command:
python3 extract.py directory-name`
extraction.log will contain summary of the operation and faces will be