Follow my Eye
.
Project by Thejasvi Magudilu Vijayaraj,Karthik Raghavan,Pramod Nataraja and Vishnu Venkataraman
Purpose
Detecting the position of eye using an algorithm developed using Open CV library and move a Robot according to the movement of the eyes.
Description
We have implemented eye detection using the Open CV library. To minimize the error in eye detection we are first detecting the face and then searching for the eye inside the face region. The eyes are detected using the features provided by the Haar cascades. The movement of the head of a person is detected by determining the difference between the center point of the rectangle that contains the eyes between successive frames. Depending upon the direction of motion of the head, suitable command is sent to the robot.The Mbed controller on receiving these commands sends it to the Xbee transmitter. The receiver Xbee module placed on the Robot receives these signals and sends it to the Mbed which controls the movement of the Robot's motors through an Dual H bridge IC.
Figure 1: Mbed controller with Xbee Transmitter
Figure 2: Mbed on the RObot along with Xbee receiver and H-Bridge drivers
Figure 3: Screenshot of the eye detection and command window showing commands sent to the Mbed Controller
Demo
Equipment
- Mbed NXP LPC1768
- Magician Chassis Robot
- XBee 1mW Chip Antenna
- Dual H-Bridge Driver
- Webcam
Laptop | MBed_Controller | Xbee_Tx | XbeeRx | MBed_Robot | Dual_H_Bridge | Motor | External Power Supply |
---|---|---|---|---|---|---|---|
USB port | USB port | ||||||
3.3V | VCC(1) | ||||||
P10 | DOUT(2) | ||||||
P9 | DIN(3) | ||||||
P11 | RESET(5) | ||||||
GND | GND(10) | ||||||
VCC(1) | 3.3V | ||||||
DOUT(2) | P10 | ||||||
DIN(3) | P9 | ||||||
RESET(5) | P11 | ||||||
GND(10) | GND | GND | |||||
+5V | VCC | ||||||
P22 | PWMA | ||||||
P5 | AIN2 | ||||||
P6 | AIN1 | ||||||
+5V | STBY | ||||||
P7 | BIN1 | ||||||
P8 | BIN2 | ||||||
P23 | PWMB | ||||||
AO1 | Motor1+ | ||||||
AO2 | Motor1- | ||||||
BO2 | Motor2+ | ||||||
BO1 | Motor2- | ||||||
VIN | VMOT | +6V | |||||
GND | GND | GND |
Code
Import programMbed_Robot
Code for Mbed Receiver for the Follow My Eye Project
Import programMbed_Controller
Controller Code of Mbed for Follow My Eye Project
Import programEye_Detection
Eye Detection Using Open CV(Should be run on a system with Open CV library)
References
Below is the references of programs and libraries that the present project was based on
- http://vairavanlaxman.com/blog/2010/01/how-to-configure-opencv-2-0-with-visual-studio-20052008.html
- http://mbed.org/users/vcazan/notebook/mbed--xbee/
Possible Improvements
- This project detects the eyes and not the eyeball itself. So the algorithm can be enhanced to detect eyeball movement.
- The blink of an eye, point of focus of the eyes determination can also be done as an enhancement to this.
Please log in to post comments.