Giter Club home page Giter Club logo

Comments (8)

auduno avatar auduno commented on September 25, 2024

It might be possible, but I haven't tried it. The face fitting model is not so precise when it comes to details like eyes, so it might be a bit off, but maybe it's worth a try?

You could try training a classifier with the code here, but you need to annotate a few image examples of people with eyes open and eyes closed.

from clmtrackr.

JordanMachado avatar JordanMachado commented on September 25, 2024

I will try to find some classifier for eyes open or close and test it.
Thank you.

from clmtrackr.

Alexander-Herranz avatar Alexander-Herranz commented on September 25, 2024

What is the status of this issue? I'm interested in getting the status (opened/closed) of each eye.

from clmtrackr.

JordanMachado avatar JordanMachado commented on September 25, 2024

It's been a long time but the project has not been released. But we use to have some result but it was not very accurate. Our technique was to detect the eyes first and after render the square of the two eye in another canvas and apply a classifier for close and open. Sadly I can't share you some peace of code.

from clmtrackr.

Alexander-Herranz avatar Alexander-Herranz commented on September 25, 2024

Thanks for the info. I'll develop a classifier to dectect the status, hope the the result pass the test!

from clmtrackr.

fernandodrumond avatar fernandodrumond commented on September 25, 2024

I'm looking into the same thing! I've found this tutorial to detect blinking, I'm gonna look into changing it to detect if the eye is open/closed.
https://andrevenancio.com/eye-blink-detection/
@Alexander-Herranz have you found anything on that?

from clmtrackr.

Alexander-Herranz avatar Alexander-Herranz commented on September 25, 2024

@fernandodrumond that tutorial is a great start point. My problem was I didn't have the opened eye previous reference.
You also can try JsFea:t https://inspirit.github.io/jsfeat/#features2d
Check Yape algorithm to detect points, and you'll see the difference in closed vs opened eyes.

Working on histograms also gives you the key, you'll notice all opened or closed eyes keeps the same histogram figure, respectively but haven't implemented this solution at all yet.

I did my test not over full eye, like Venancio example but only over pupile, cutting the image as follow:

rightEyeRect.x = (pos[63][0]+pos[27][0])/2;
rightEyeRect.y = (pos[63][1]+pos[27][1])/2;
rightEyeRect.w = (pos[64][0]+pos[27][0])/2 - (pos[63][0]+pos[27][0])/2;
rightEyeRect.h = (pos[26][1]+pos[27][1])/2 - (pos[24][1]+pos[27][1])/2;

from clmtrackr.

fernandodrumond avatar fernandodrumond commented on September 25, 2024

Thank you @Alexander-Herranz that looks like a good approach, I'm gonna give it a try!

from clmtrackr.

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.