OpenCV eye tracking on Android

后端 未结 1 2070
无人共我
无人共我 2021-02-10 08:36

I\'m looking to do basic eye tracking in android using the OpenCV api. I\'ve found that there seem to be two ways to use opencv in Andriod, either by using their c++ wrapper or

相关标签:
1条回答
  • 2021-02-10 08:52

    Assuming you already looked into JNI (Java Native interface), JavaCV is exactly the same thing as OpenCV. As per eye tracking, you will need to get the live video feed from the camera and locate the participant's eyes in the frames using template matching and blink detection. You will just have to make your View implements Camera.PreviewCallback in order to get a hold on the camera feed.

    The OpenCV Site on eye tracking provides some sample codes that will help you track the eyes.

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

    Hope it helps

    0 讨论(0)
提交回复
热议问题