At Vainu the school bus conductor's Android phone suggests each child's name when they board, from a quick face check. Getting a model to produce an embedding is the easy part. Most of the work is deciding when the phone should not suggest a name. These are the gates a camera frame goes through, in order, and why each one exists.
1. Is the frame good enough to judge at all?
Before identity comes up, a quality gate rejects frames the matcher should not be trusted with. It measures:
One clear face. A second face at least half the width of the main one (a child leaning in behind) makes the frame ambiguous, so it is rejected rather than guessed.
Size and detector confidence. Faces narrower than 80 px, or with a detector score below 0.8, are too small or too uncertain.
Pose. Yaw is estimated from where the nose sits between the eyes; roll from the eye line. Large turns are rejected.
Sharpness. Variance of the Laplacian of the aligned face. Buses move; motion blur is the most common failure.
Brightness.…