Smooth as Butter

3/1/2021

After a good amount of work, I was successfully able to implement a smoothing algorithm that helps the eye tracking function stick to the user’s eye more closely. Natural sudden jitters from the eye make tracking a precise point the eye is looking at and always mapping the mouse to that position, causing the mouse to jump around and making the application very difficult to use. That is the reason that I had to implement a smoothing algorithm.

Implementing this algorithm was somewhat difficult, instead of setting the mouse to wherever you were currently looking, I kept a rolling average of the last 5 positions that the user was looking. After debugging this implementation, I immediately noticed the improved user experience. I will continue to brainstorm better algorithms that can work efficiently and consistently.

Leave a comment

Your email address will not be published. Required fields are marked *

css.php