Ask Your Question

Fastest, and most accurate eye finding algorithm available in opencv?

asked 2013-07-31 11:00:38 -0500

MattiasR gravatar image

Is there any other way, than using haar, to find the eyes within the face box?

I used Haar, but the position jitter to much. Changed to flandmarks, which works great (still jitter, but iris is always inside the "box". But then I found that flandmarks is licensed under GNU GPL. Which doesn't work for me unfortunately :/

What methods is available, in opencv, to find the position of the eyes? Speed is important (real time), and accuracy. Jitter is OK, as long as the pupil is inside the resulting "rect".

I need to find the position of the eyes with eyes both open and closed.

Please give me a hint!


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-07-31 17:22:19 -0500

I think you should try to train a classifier on eye with LBP. This tutorial is well done, and you have almost nothing to do...

Just a small remind, if you are concern by license, take care of the database you will used! Some of them are NOT for commercial purpose.

edit flag offensive delete link more


Either cascade classifier or the softcascade algorithm that is in the master branch will do the trick. Basically you need tons of training images to yield good results, but once you got the nice aligned data, this will work perfectly.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-08-01 02:41:45 -0500 )edit

Question Tools


Asked: 2013-07-31 11:00:38 -0500

Seen: 1,092 times

Last updated: Jul 31 '13