Pupil can mean either an eye pupil, or a student (also known as a pupil). So I just wanted to make sure which of these you are aiming to do.
1. Track the face and / or hand gestures of a student.
Or 2. Track only the eye movements of the student.
It may be possible to achieve with the SR300, though some parts of it may be difficult to create.
If you want to count how many times a particular student is in the class, you would have to use a face registration database so that the camera can identify the presence of a certain student by comparing the face to an image of that student stored in the database. For face database applications, I would recommend using the '2016 R2' version of the RealSense SDK, as its face software is more stable than the '2016 R3' version of the SDK.
You can download '2016 R2' as a 1.8 gb file using this link, which willl start the download automatically in your browser when clicked on:
Detecting the number of hands is an easier task. It can be done using an instruction called QueryNumberOfHands.
Page 12 of the hand tracking tutorial guide linked to below has a script that shows how to program QueryNumberOfHands.
Asked to detect all the students in the classroom the number of showers, he can use the R200 to achieve it.Can you tell me concrete steps? thaks
I would recommend using the SR300. The R200 does not have hand tracking, so you would not be able to do the hand counting part of the project with it.
Face recognition databases are a difficult subject. The best place to begin learning it is with this tutorial: