How do I recognize faces and only output that from camera capture?

Thank you for your help! So I have been trying it out and the idea is there, but the result isn’t that great… It does recognizes the face but when trying to recognize the eye, nose and mouth it doesn’t does the job unfortunelately, and thats what I need.

Do you perhaps know other alternatives that are better at this?