Face detection works properly if cameras are installed and set up as follows:
The required distance between the camera and the face can be set using a lens with required focal length.