I am developing a C++ application for face authentication. First, I have to detect the face and pre-process the image.
I have implemented it here using OpenCV & DLib: https://github.com/ManuBN786/Face-Alignment-using-Dlib-OpenCV
Any tilted faces can be aligned using my code.