android - eye detection even without face detection during camera preview

7.1k Views Asked by At

is there any library for detecting an eye in a given rectangle (and the eye's size) , while the camera preview is still showing its content (non stop) ?

i need to find an easy way to acheive this . i've found out that there is an API for face detection , and that on android 4 they also added eyes detection , but only if it found a face , yet i need to find an eye even without any face.

2

There are 2 best solutions below

0
On

opencv is best lib for working with face and eye Detection Using opencv you can do:
http://opencv-code.com/tutorials/eye-detection-and-tracking/
Example Code:
http://romanhosek.cz/android-eye-detection-and-tracking-with-opencv/

1
On

You could always ook at the source code for Android and see how they do Eye detection.

Otherwise check out this question: OpenCV eye tracking on Android

If you want to see an example of opencv on android, click on this open source code.