Closed Eye Detection using Eye Aspect Ratio (EAR)
Deepan in Action !

Closed Eye Detection using Eye Aspect Ratio (EAR)

Problem

Our team at AV DEVS recently faced a scenario while working on a solution to detect closed eyes as part of a larger project. The usual closed eye detection using classification model of machine learning tend to get quite heavy and slow as it trains. And also it would take time before it learns and gets accurate.

Using EAR (Eye Aspect Ratio) would solve that problem but would create false assumptions for people with less EAR.

Solution

We planned to make use of both approaches and build a model that calculates EAR before actual experience begins. If the EAR is less then a threshold value, use classification model and if it is higher then threshold value, use the EAR model.

To use EAR model to detect closed eye, we monitor EAR to see if the value falls but does not increase again thus implying the person has closed the eyes. We added time sensitivity element to differentiate simple blinking vs actual closed eye.

Basic Algorithm

Variable_EAR_Threshold (threshold to detect closed eye let's say 0.3)
Variable_EAR_Count_Frames (no. of consecutive frames with eyes closed)

Hence,

--> if EAR < 0.3, start counting the no. of frames with eyes closed and store in Variable_EAR_Count_Frames.


--> if Variable_EAR_Count_Frames > 50, trigger closed eye event!


Wish to build your next Machine Learning product with AV DEVS team? Reach out at [email protected]

Article Conceptualized by: Deepan Parikh


Harsh Patel

Software creator and destroyer || Innovate the world with technology

5 年

Great work ??????

回复
Sajid S.

Software Test Lead | Scrum Master (CSM??) | Penetration Testing

5 年

Interesting

要查看或添加评论,请登录

Manan Vasavada的更多文章

  • Performance should not be an Afterthought

    Performance should not be an Afterthought

    Building tech solutions go beyond just basic functionality. We are not satisfied with a system that works.

    1 条评论
  • Optimizing Machine Learning Model.

    Optimizing Machine Learning Model.

    Machine Learning algorithms and their learning model are often time and computing resource intensive. A large amount of…

    2 条评论
  • Android App Security

    Android App Security

    The key aspects of any successful APP project are design, functionality, performance, and security. Out of these, the…

  • Flutter Early Movers

    Flutter Early Movers

    Team AV DEVS has been an early mover every time a promising new technology was launched and we saw the potential for…

    1 条评论
  • App Security Testing

    App Security Testing

    This post is presented by our Lead QA - Priyanka and her journey of exploring the security aspect of mobile Apps while…

    3 条评论
  • Automation Script Using Python

    Automation Script Using Python

    The best part of automation programming is to sit and watch a machine do the repetitive task while you can spend your…

  • Spicing up Retrospective Meetings with ESVP activity

    Spicing up Retrospective Meetings with ESVP activity

    We are Agile with Agile ! We just started Sprint # 16. This means we have been developing and following the process for…

    2 条评论
  • The Secret to effective outsourcing and product development

    The Secret to effective outsourcing and product development

    How often do we hear about a negative outsourcing experience? Everything starts well but soon problems start. Cost and…

    3 条评论
  • Apple WWDC 2015

    Apple WWDC 2015

    Apple WWDC 2015 brings along better, faster, secured technologies and opens up incredible opportunities for businesses…

社区洞察

其他会员也浏览了