Hi Sir,
with OpenCV we can distinguish between blurry images and good images with the FFT.
For face recognition multiple approaches are possible...
It depends on your images and on your goal.
Do not hesitate to ask me for any question, or even better, feel free to send me some images as example of what you need to distinguish so that i can adjust the bid accordingly
Best regards