Comments (8)
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.
I will try to find some classifier for eyes open or close and test it.
Thank you.
from clmtrackr.
What is the status of this issue? I'm interested in getting the status (opened/closed) of each eye.
from clmtrackr.
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.
Thanks for the info. I'll develop a classifier to dectect the status, hope the the result pass the test!
from clmtrackr.
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.
@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.
Thank you @Alexander-Herranz that looks like a good approach, I'm gonna give it a try!
from clmtrackr.
Related Issues (20)
- Is it possible to change the color of the green lines? HOT 2
- Camera stream freezes once the clmtrackr detects a face (MacOs Mojave, Safari) HOT 9
- Is it possible to detect only the smile? HOT 1
- Video gets laggy on Safari for iOS HOT 1
- Alert Android9 Browser Face Deformer.
- detect_multi_scale TypeError HOT 2
- T
- ERR_SSL_PROTOCOL_ERROR HOT 2
- Problems on webpack and Symfony installation HOT 7
- jsfeat module is not defined HOT 5
- Unable to stop the tracker once started
- how improve the emotion detector
- Detect eye blink HOT 1
- How to stop the shaking on the mask
- Show a cap on head HOT 1
- Issue in Android Mobile
- Bug: Image tracking on mobile gives very bad results HOT 1
- High resolution error
- hide fps
- Nose slimming effect?
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 clmtrackr.