In a classroom, it only needs to recognize 30 people. That seems doable.
Car makers also claim to work on detecting dozing off of drivers. What about it should be impossible? Detecting if eyes are open or shut sounds doable, unless everybody is wearing sunglasses.