segunda-feira, 8 de novembro de 2010

Face Tracker





Libraries Used:

Description:
This application is very similar to the ColorTracker but instead of colors it tracks faces.

It has three vertical lines, the yellow one represents the x center of the face and the other two, x min and x max, which are red, divide the image in three parts. If the yellow line is on the left part the application gives the robot an order to turn left and if it is on the right part it should turn right. 
There are other two horizontal lines, y max which is red and the y center of the face which is yellow.  So, if the blob is between the x min and x max lines and it's above the y max the robot goes backward, if it's below the line it goes foward. 

All those red lines can also be adjusted using the correspondent sliders. 

The serial commands (w,s,a,d and g) can be sent at a 4800 baud to the COM port specified on the text field, you just to write it there and press ENTER (example: "COM5").