Friday, September 6, 2013

WonderRoom

It started when we got a departmental e-mail (forwarded from a Microsoft representative) informing us about a prize challenge to create an "Out of the Box" project using NUI (Natural User Interface). The challenge is named Microsoft NUI OOBW (Out-of-the-box week). This was about an hour before a semester exam so me and Omer were chilling outside and starting to run ideas. After a couple of days we set out - we were about to build WonderRoom - the interactive playroom. The funny thing is, about a week before the actual convention we realized "NUI" was just Microsoft's way of saying - "user Kinect"...

So the idea behind the project is to demo a "non-standard" use of the Kinect and it's features - real time depth and color map feeds, skeleton tracking, and segmentation. The application is in the form of a Kinect for Windows device on a tripod looking over a child's playroom with the idea that we can bring the child's own toys to life. This is done by hooking the Kinect to a PC running MATLAB with the MATLAB toolbox for Kinect and running our software which recognizes a person and some simple building blocks and guides the child in building a house - constantly providing feedback on success or failure just by "looking" at the child playing. A picture is worth a 100 words, so a video probably a million:


Some tech stuff:

  • As said - we used a very normal laptop running Windows, MATLAB 2013 with the Kinect for Windows Toolbox from MathWorks - this is a wonderful toolbox that gives you everything the Kinect has to offer in real-time, straight to the MATLAB workspace. It's only flaw is that it does not include the registration functions between the color and depth maps - meaning you can not correlate a pixel from the depth channel with the RGB channels - this did give us some trouble.
  • The recognition is quite straight forward - we use min and max thresholds on the depth map for background subtraction. We then use hue filters and shape tests to find each playing cube and figure out it's orientation and position. For 3D positioning we also use the depth map but for this we had to do some ugly approximation because of the lack of correlation between the RGB and D channels. The positions of all cubes is fed to a simple state-machine that gives the user feed back like -"now lets put the blue triangle on top" etc.
  • You can see the full source code (including a C++ attempt which was dumped) on Google Code:
    https://github.com/syagev/playroom
We put up a pitch which included the following video and presented it to some Microsoft VPs from Israel and Redmond:


They seemed to like it and the demo we did live during the pitch so we won first place (and got to go home with an Xbox 360 and a Kinect for each of us), and got some press coverage on Ynet.

All together this was bunch of fun!

Monday, September 2, 2013

WeizGrid

WeizGrid is a Simple framework for using the SGE cluster on Weizmann for parallel work (so if you're not from Weizmann's Math&CS department you won't find much use in this, although it is can be easily used by anyone who runs Sun's Grid Engine and MATLAB).

You can get the latest version off of GitHub from here.

Features:

  • Helps split your own code into fractions that can be run in parallel on the cluster.
  • Allows you to aggregate results in an efficient manner.
  • Write your code ONCE! Execute the same code on PC for debugging and on the cluster for production.
  • Recover from errors on the cluster - splitting means if 1 iteration out of a 1000 failed you still have 999 iterations in your hand!

Use case example:
You have a job that processes 1000 images in some way, running the same algorithm for each image, outputing something for each image, and finally aggregating the results from all images. Up until now, you ran this in a single job that took 1000 minutes (because lets assume it takes 1 minute to process each image). Using WeizGrid you can take advantage of the fact that the job can be parallelized - instead of 1 job WeizGrid helps you easily split the job to 80 parallel jobs so that you get all 1000 images in 1000/80=12.5 minutes (!!)

Documentation:
Read the full README file to get a better picture and also make sure to go over the 'sample.m' and 'calcPrimes.m' files included as an example and over the quick-help of the function WGexec, and WGgetResults. If you still have questions please feel free to contact me.

Terms:
WeizGrid is obviously free of use with no restrictions except for one: if you find a bug I need to know to make WeizGrid better !!

Wednesday, August 28, 2013

Worked terribly long nights over the past couple of weeks together with my brother Tom on this video. Animation was done solely by my brother using 3D Studio MAX, Vue, and After FX. I did the editing using plain old Premiere. Here is the result (better set it to HD and fullscreen, and use a good pair of speakers):


Saturday, March 24, 2012

Whist - Can't Bear Losing

Not even nearly enough time to work on a single project and yet can't help from starting to ponder about the next one.. In Israel there's a unique version of the card game of Whist (known even internationally as "Israeli" Whist). I played a few times, and lost them all. As a truly unbearable situation I could not stop my self from seeking a technological solution. Writing an algorithm for a good probabilistic computer player will surely do the job as doing so takes you beyond anger and emotion into analyzing the basics of the game and discovering it's mathematical nature. Rest assured, I wouldn't mind losing again having written a piece of software that is at least as good as any of my friends...

iPee Production

iPee project pending real life production! Purchased the iPad's genuine LCD screen (from Samsung electronics), a BeagleBoard to run my "novel" pee detection algorithm and Logitech's QuickCam Pro 900 to be hacked and turned into a wide-angle near-IR camera. In order not too proceed description to actual creation, full details and a short dossier on the algorithm will follow the actual installation.

IDF Morality - HLS Student Visit

Had the honor to host the annual visit of leading HLS (Harvard Law School) students to Israel this week on base, trying to fill in the gap where the media all too often fails: describing the moral dilemmas and concerns we (the people behind the military operations) are facing every day. One of the students' hosts wrote about it in the Jerusalem Post. Read it here:
http://www.jpost.com/Opinion/Columnists/Article.aspx?id=263068 

Thursday, October 20, 2011

Article about me

Well, not exactly famous, but the military's PR section has published an article about me. Surprisingly enough, it's quite accurate!
http://dover.idf.il/IDF/English/News/Up_Close/2011/01/0901.htm

Saturday, September 17, 2011