question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can I detect eye blink?

See original GitHub issue

Hi,

I get left and right eyes’ landmarks by simply calling as below:

const detectionWithLandmarks = await faceDetectionTask.withFaceLandmarks()
const leftEye = detectionWithLandmarks.faceLandmarks.getLeftEye()
const rightEye = detectionWithLandmarks.faceLandmarks.getRightEye()

What I want is getting points from eyes then doing a simple calculation to find if a user closes or enlarge their eyes. However, I find the points from eyes don’t have a large difference when I close or enlarge my eyes. Is there possible to detect detailed eye expression by this library?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:5
  • Comments:25 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
khalidtariqcommented, Mar 12, 2022

@justadudewhohacks hi i am using face-api for face detection i would like to know how can i show detected face in javascript

1reaction
nathanycommented, Feb 27, 2019

Another article on blink detection: https://www.pyimagesearch.com/2017/04/24/eye-blink-detection-opencv-python-dlib/ Which utilizes dlib http://blog.dlib.net/2014/08/real-time-face-pose-estimation.html and appears to be based on the “One Millisecond Face Alignment with an Ensemble of Regression Trees” paper and the ~~HELEN dataset http://www.ifp.illinois.edu/~vuongle2/helen/.~~ 68 point iBUG 300-W dataset https://ibug.doc.ic.ac.uk/resources/facial-point-annotations/.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mobile-Based Eye-Blink Detection Performance Analysis on ...
The first tool can automatically detect a user's eye blinks and accurately measure their durations. In their approach, any voluntary long blinks ...
Read more >
Eye blink detection with OpenCV, Python, and dlib
Learn how to detect blinks, count blinks, and recognize blinks in video streams using OpenCV and Python.
Read more >
Blink Detection using Python. | AlgoAsylum - Medium
How to detect blinks using webcam and python and a simplified algorithm. ... Eye movements can tell us a lot about human behavior....
Read more >
Eye blink detection with OpenCV, Python, and dlib
In this article, we are going to see how to detect eye blink using OpenCV, Python, and dlib. This is a fairly simple...
Read more >
#011 How to detect eye blinking in videos using dlib and ...
We can detect blinking by calculating the length of these two lines and then finding the ratio between them. This ratio will be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found