The video motion cursor class which turns video motion in a Web cam into cursor movement was written by professor Dan Zen in Flash AS2.0 It turns successive frames of the video into bitmaps and then uses the difference filter with the aid of blurring to reduce video noise, thresholding to one color and drawing a rectangle around that color to capture the area of motion. A cursor is then placed at the top middle of the rectangle when central motion is detected and at the top outer edges of the rectangle when peripheral motion is detected. This placement is adjusted proportionally to accommodate arm and hand motion and place the cursor at the finger.
The students have used the VideoMotion class to create a variety of pioneering prototypes in motion input multimedia. Examples are:
- Running from a swarm of bees that follow you
- Waving the hand to play notes on a music staff
- Controlling a magic wand to spring effects out of a hat
- Using your lips to activate a translation e-learning application
- Jumping to knock coins into a box in a Mario game
- Flying a butterfly through a magical land
- Simulating fire and wind to fly hot air balloons
Special thanks to FITC and Grant Skinner for techniques probably around since our founder David Rokeby and who knows before that…
An introduction sample the video motion cursor class in action can be seen on this sample page. Please leave a comment on this post if you would like access to the Flash VideoMotion class.
Click for Sample Video Motion Demonstration sample by Dan Zen.