It is easy to plug a Kinect to PC – all you need is a cheap adapter. Then you can control something with it.
Watch the video:
It takes a little bit of programming, but that’s the fun part.
Kinect code is written in C# and run on Win7/64 PC. I use example from Kinect SDK. Arduino part is written in Arduino C. They communicate via Serial-over-USB.
Sadly, it is little too late for Halloween. Never mind, I already have a REALLY CRAZY idea for the next year!
People are asking for source codes. Sure, no problems!
Download All Sources
PC sources include Kinekt project and standalone WinForms project for testing communications with Arduino (testing servo operations from Kinekt is quite inconvinient)
If you want to use Kinekt sources, download the toolkit from MS web site and compare project FaceTrackingBasics-WPF with my sources using something like WinMerge. You will see what did I change.
Arduino part is missing code that checks for non-”0″. But it works. The idea was – if there is bad package, or PC-Arduino get out-of-sync, Arduino shall skip bad data and re-sync. However, code works just fine without it, so I never added the last few lines of code.
(do you remember programming Int14 in MS DOS? That thing required all kind of SW recovery and yet worked unreliably, or maybe I just had some bad hardware). Anyways, I tell to myself: it is not broken, so do not fix it.
Oh, and communication protocol is very simple. PC sends to Arduino 3 bytes over and over:
0×00, X, Y
X and Y are in a range from 1 to 255
I captured a video I wanted to play backwards. I also wanted it to be played slower than it was captured.
I know how to make it slower – Windows Live Movie Maker does an excellent job (“Speed” dropdown in Edit tab).
It cannot reverse the video though
I found instructions on the internet to run an Avisynth script with Reverse, but it is not very smart about codecs (all I got is codec errors).
Then I found instructions to do it step-by-step. First, I slowed the video with Mindows Live Movie Maker. Then I converted it with VLC. Then I decompressed it with Avidemux. Then I revered it with older version of Avidemux as new version (2.6) no longer supports reverse (no kidding! I’m glad I still have 2.5!) and compressed it.
Here is the result:
Then I thought: hmm, there should be an easier way. I tried all free video editors – they all both unusable and do not have this feature. Then I found VideoPad.
VideoPad has free license for personal use. It also has an option to change clip speed in “Effect” menu (10x is the limit, but I can live with it). It also has a checkbox for “Reverse”.
It is exactly what we need, right?
Sadly, it does not work. Video is ugly, shaky, badly interlaced, and jumps back and forward in time.
I thought – well, may be if I slow video down with Windows Live Movie Maker, it will help? Because slowing down does not work smooth in VideoPad. No, it does not.
Next thing to try was decompression of the video before reversing. First time it decompressed into colorful noise, but after playing with codecs, I decompressed it decently. Sadly, it did not help.
The bottom line is: VideoPad is not commercial grade software, and those guys should test it before releasing and before asking money for it.
How I’m going to reverse my video next time? I guess, I will play more with Avisynth, figure out codecs issues and write a script.
Another Xenia’s school project – puppets for theater puppet show.
Can you believe this is quiz machine?
Last year my Halloween robot monster was not that impressive.
This year I managed to frighten a few kids
A gate? What could be cool about it?
Well, take a look
It is so easy to make stuff from PVC pipes!
maniac maker should make his own knife.
Here is mine: