A port of the Tristan Hume's code to use Eye-Tracking with the Nao Robot's webcam
This example demonstrates how to get images from the NAO robot remotely, detect the eye movement and how to display them on your screen using opencv.
This code is completly based on the "getimage" Aldebaran's example [1] and on the EyeTracking algorithm implemented by Tristam Hume [2] based on the paper "Accurate eye centre localisation by means of gradients" [3]
- [1] http://www.aldebaran-robotics.com/documentation/dev/cpp/examples/vision/getimage/getimage.html
- [2] http://thume.ca/projects/2012/11/04/simple-accurate-eye-center-tracking-in-opencv/
- [3] Timm and Barth. Accurate eye centre localisation by means of gradients. In Proceedings of the Int. Conference on Computer Theory and Applications (VISAPP), volume 1, pages 125-130, Algarve, Portugal, 2011. INSTICC.
Feel free to modify, redistribute, play... but please, always keep the appropiate recognition to the originals authors listed above. In my blog you will find complementary information.
To test the code, you need:
- Aldebaran's SDK
- OpenCV 2.4 (I suppouse it also works with OpenCV 2.3
- NAO Robot, it is not provided with this code :-)
http://abitworld.com/eye-tracking-and-nao-robot/
Manuel Martin [email protected]
A Bit World < abitworld.com >