Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the pupil and iris radius #6

Closed
igors7 opened this issue Feb 15, 2020 · 3 comments
Closed

How to get the pupil and iris radius #6

igors7 opened this issue Feb 15, 2020 · 3 comments

Comments

@igors7
Copy link

igors7 commented Feb 15, 2020

For educational purposes, we need to know the radius of the iris and pupil. How can we do this? We tried to look at the source code but found only the radius of the pupil there, how can we find the radius of the iris? Thanks!

@xavierjs
Copy link
Member

Hi,

With a standard, uncalibrated camera, we cannot measure the radius of the pupil or the radius of the iris in exact units. There is always an unknown scale factor.

Internally, pupil and iris radius are computed in pixels of the camera image. But we never know the scale factor between pixel of the camera image at the pupil position and real-world units.

The only meaningful meaurement is the ratio between pupilRadius and irisRadius. This is what you can get from the lib.

Best,
Xavier

@igors7
Copy link
Author

igors7 commented Apr 2, 2020 via email

@xavierjs
Copy link
Member

xavierjs commented Apr 2, 2020

Hi,

I said that there is always an unknow scale factor. It means that we cannot get the pupil radius in absolute world unit (mm, inches or whatever).
We only have the ratio between the pupil radius and the iris radius. It is also a more robust measurement since people eyes size can vary.
In this demo for example: https://github.com/jeeliz/jeelizPupillometry/blob/master/demos/lightIntensity/Experiment.js

pupil relative radi are given by detectedState.pupilLeftRadius and detectedState.pupilRightRadius

@xavierjs xavierjs pinned this issue Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants