YutaItoh / 3D-Eye-Tracker

MIT License
356 stars 106 forks source link

how can i check pupil diameter? #7

Closed SanghunNam closed 7 years ago

SanghunNam commented 7 years ago

How are you? I need pupil diameter for my research. I'am checking your code for get the pupil diameter. Can you explain it for easy?

jason01234 commented 7 years ago

Hi SanghunNam.

In the eye_model_updater.cpp file, there is a function that handles the 3D gaze vector on line 295. The radius of the pupil can be returned using c_end.radius.

For example: std::cout << "radius: " << c_end.radius << std::endl; would print the pupil radius for every frame. Multiply by 2 to get the diameter.

Hope this answers your question.

Jason