Use this tag for question related to eye detection, i.e. the process of measuring the location of the eyes for monitoring people's emotional state, drivers awareness/fatigue monitoring, to add objects to pictures (virtual masks) and so on, by image processing techniques.
Questions tagged [eye-detection]
71 questions
2
votes
1 answer
Python - Unable to detect face and eye?
I am trying to create a face and eye detection using OpenCV library. This is the code I been working with. It's running smoothly with no errors but the only problem is not showing any results no faces and eyes are found with this code
import…

the_guy
- 99
- 3
- 15
2
votes
1 answer
openCV : Detect object without displaying the webcam view window
I am using Haar cascade classifiers to detect eyes from the webcam. I don't want to display what the webcam is capturing.
This is part of a project for eye movement analysis. I want to know where on screen the user is looking.
if I display the…

vss
- 567
- 2
- 7
- 18
2
votes
2 answers
OpenCV & Python : Face Detection using haarcascades is detecting many boxes as eyes.
I am using Haarcascades for detecting faces and eyes. My problem is, its bounding many boxes as eyes. My syntax is
face_cascade = cv2.CascadeClassifier('haarcascades\haarcascade_frontalface_default.xml')
eye_cascade =…

Sugantharaja
- 121
- 1
- 3
- 14
2
votes
1 answer
Running OpenCV eye detection from within Android service
I want to run eye detection by OpenCV4Android from Android background service. I have a piece of code that runs well but as an Activity not service. I understand that the Android camera must have a preview to open. So I have created a preview (small…

Dania
- 1,648
- 4
- 31
- 57
2
votes
1 answer
How to detect coordinates of left and right eye using android face detection
Hello I am new to android. I want to detect the coordinates of left and right eye along with hairs in an image.
In this link it shows that what are the methods to detect eyes that but I am not able to implement these methods.
Also I want to detect…

Divyesh Jindal
- 57
- 2
- 8
2
votes
1 answer
error C2679: binary '=' : no operator found which takes a right-hand operand of type 'IplImage *' (or there is no acceptable conversion) OpenCV
Hi I am trying to use this code Cascade Classifier. I got the error in title. I am using VS 2013 and OpenCV 3.0.
I am new and I don't understand why this code works for everybody except me?
What is the way to fix it?
Here error line:
frame =…

ffttyy
- 853
- 2
- 19
- 49
2
votes
2 answers
Library Reference Issue using opencv in android
I am working on opencv face detection project in android. i have an issue regarding Library reference, i have manually set the reference from project properties--->android but it is not been set. kindly help
There is not issue regarding ndk paths or…

Saad Bilal
- 1,767
- 1
- 17
- 31
2
votes
1 answer
can we detect eye without face detection in open cv
I am working on opencv in android. can anyone tell that can i detect eye without face detection? my code is:
Rect e = eyesArray[i];
e.x = area.x + e.x;
e.y = area.y + e.y;
Rect eye_only_rectangle = new…

Saad Bilal
- 1,767
- 1
- 17
- 31
1
vote
3 answers
Eye detection software
I need an eye-detection software having good accuracy. The software should be able to detect eye coordinates on still images.
Can anybody give me good suggestions regarding the same.
Thanks in advance :)

user671805
- 602
- 1
- 12
- 29
1
vote
1 answer
OpenCV Eye Tracking looses out for some frames
I am pasting code below to track both eyes and overlay an image when both eyes are tracked.
I am using haar xml files to track both eyes of faces and overlaying an image over it.
My problem is I get result like this.
Img 1
Img 2
Img 3
Img 4
Img…

Wazy
- 8,822
- 10
- 53
- 98
1
vote
1 answer
DLIB's Upper and lower eye lid detection accuracy is not correct for closed eye
We are using DLIB for face detection, which is extended to detect whether eye is open or closed.
It works really well but eye is closed completely for some images it is not giving proper points.
e.g. Proper Image
As you can see, RED points are…

Banng
- 531
- 1
- 6
- 19
1
vote
1 answer
Error: the following arguments are required
This is my code:
ap = argparse.ArgumentParser()
ap.add_argument("-p", "--shape-predictor", required=True,
help="path to facial landmark predictor", default="shape_predictor_68_face_landmarks.dat")
ap.add_argument("-a", "--alarm", type=str,…

Soumyadutta Dash
- 11
- 1
- 2
1
vote
0 answers
Error while detecting state of eye between two frames
I am trying to implement a simpler version of eye blink by using the idea of object detection.So my plan is to get the frame around the eye region at every first and third frame and check the state using the Structural Similarity metric which…

Souvik Ray
- 2,899
- 5
- 38
- 70
1
vote
0 answers
Remove glare from human eye in opencv python
I am looking for pupil detection from image using pythonwith opencvpackage. In my test images, I am able to detect pupil in (a) part but whenever there is a presence of reflection/ glare, I am unable to detect blob of pupil pixels accurately in (b)…

abhi1610
- 721
- 13
- 28
1
vote
0 answers
Gaze tracking with a webcam (openCV and C++)
I'm trying to realize a tool that returns the 2D coordinates of the point that the user is looking at. To do that I'm using openCV, c++ language and a low-cost webcam. I have the 2D coordinates of the center of the two pupils (leftPupil, rightPupil)…

Jack
- 49
- 1
- 5