OpenCV Eye Tracking on Android

I want to do basic eye tracking in android using the OpenCV api. I found that there are apparently two ways to use opencv in Andriod, either using their C ++ shell or using the JavaCV api. I want to do this too, but I'm looking for some idea or code sample regarding how I will track the main eye movements using any platform. I'm leaning towards the JavaCV api because it looks easier to use, but I can really use some kind of tutorial on the basics of using it with Android.

+4
source share
1 answer

Assuming you've already learned JNI (Java Native interface), JavaCV is exactly the same as OpenCV. In accordance with eye tracking, you will need to get a live video from the camera and find the participant’s eyes in frames using pattern matching and blink detection. You just need to make your View for Camera.PreviewCallback in order to get a fix in the camera channel.

The OpenCV Site Eye Tracker contains some sample codes to help you track your eyes.

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

Hope this helps

+5
source

Source: https://habr.com/ru/post/1392293/


All Articles