Coder Social home page Coder Social logo

Comments (2)

antoinelame avatar antoinelame commented on August 16, 2024

Hello @crissallan,

To avoid users to provide a threshold value themselves, I created an automatic calibration algorithm to find the right threshold value for the user/webcam.

I did some statistics and noticed that the size of the iris is always about 48% of the surface of the eye for all people (when they are looking to the center). Thresholds values to binarize images can differ a lot from person to person, but iris sizes are very stable.

However, I may not have done enough statistics on different types of eyes. Maybe for Asian eyes, the 48% size is slightly inaccurate. But I'm really not sure, I'd have to check it. I don't think the difference is significant, though.

So on the current version, here's how works the automatic calibration algorithm:

  • During the first 20 frames, I send them to the Calibration class
  • I try to binarize the frame with different thresholds values from 5 to 100 (with a step of 5) and I calculate iris sizes
  • For each frame, I save the value that gives the closest iris size to 48%
  • When the first 20 frames are analyzed, the final threshold value is the average of the best 20 values

More information there!

from gazetracking.

ANYMS-A avatar ANYMS-A commented on August 16, 2024

Thank you so much!This is really helpful for me!

from gazetracking.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.