Comments (2)
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
from gazetracking.
Thank you so much!This is really helpful for me!
from gazetracking.
Related Issues (20)
- identify persons in group looking at cam
- Algorithm
- Translate into Korean
- Could not find a version that satisfies the requirement opencv_python==4.2.0.42 HOT 3
- pybind11 issue HOT 1
- Dependency conflicts
- what alogrithm is used ? is it cnn ? HOT 1
- saving the coordinates
- Package installation error HOT 2
- Cannot find the requirements.txt file in git repo
- Problem for running the code on an input video HOT 1
- Running on gpu HOT 3
- code start issue. HOT 2
- Ratio > 1?
- GazeTracking import error HOT 2
- May I ask how to use this project to find the position of the screen where the eyes are focused HOT 2
- Why is no body talking about adding Up and Down is that impossible or something?
- Problems using it on multiple faces HOT 1
- Installing dependencies using pip requirements breaks in Python 3.12 HOT 1
- nVidia only? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gazetracking.