Trying to duplicate this full body video controller
Topic: Trying to duplicate this full body video controller
(Read 1 time)
Location: Manchester (England England)
Solder is electric glue
Re: Trying to duplicate this full body video controller
Feb 01, 2011, 12:57 pm
It looks like this person used processing or some other image processing language with a movement detector module. Basically you take an image of the background pavement (sidewalk as you would say), and use this as a reference image. Then take an image and subtract each pixel from the corresponding pixel in the reference image to produce a difference image. Then scan along the X axis from the left until you reach the first non zero pixel. Do the same from the right and the target is between these two values. Do this for all lines and take the maximum value in from both ends and the center to draw the center line.
Then you know where your target is, send that information over the serial port to an arduino controlling a motor with a pulse counter on it and move the motor to the position corresponding to the target.
The arduino only plays a small role in this project.