The Green Screen without a Green Screen - "Kinect No Need 4 Green"
- Posted: May 16, 2013 at 6:00AM
- 6,276 views
As promised on Tuesday, here's this week's second project by David Renton, this time with him showing off (with code) how to do a "green screen" without a green screen...
This little piece of software allows you to produce easily, quickly and cheaply the type of picture that you would normally need a proper green screen setup to create. The software uses a Kinect for Windows or Kinect for XBOX360 device connected to a Windows 7 or 8 pc.
All you need to do is stand in front of the device and it will cut you out. You can choose between different backdrops, which you can add to by copying your own pictures (JPEG or PNG) into the PICTURES sub-folder. You can zoom in & out and move the cut out image using the keyboard or by on-screen controls. You can take snapshot pictures of what is displayed in the window and these pictures are saved into the SNAPSHOTS sub-folder.
The keyboard controls are as below:-
SPACE bar takes a snapshot photo
W,A,S,D keys move the cut-out image left, right, up and down
+ and – keys zoom the cut-out image in and out
UP and DOWN keys allow you to adjust the viewing angle of the Kinect Device
LEFT and RIGHT keys allow you to choose the backdrop picture
M toggles mirroring mode on and off
F11 toggles full screen mode on and off
C toggles depth cut off mode on and off. This mode changes the way Kinect cuts the image out, by cutting out based on the distance from Kinect, rather than trying to cut out individual people. When in this mode the < key and the > key allow you to adjust the cut off distance.
Project Download URL: Click here to download No Need 4 Green version 1
Project Source URL: Click here to download No Need 4 Green version 1 with C# source code
Update: Since the writing of this post David has already released a v2!
I've already made some changes to my NoNeed4Green, so here is version 2. The main addition being the facility to add foreground pictures. The foreground pictures have their own sub-folder called foreground and they use PNG files only, as you need images with transparent backgrounds for it to work. This allows you to put objects in front of the live cut-outs of people as well as having a background behind them. This lets you do things like putting someone behind the desk of the oval office or behind the desk of the BBC newsroom or on the bow of the Titanic. You can also now resize and move all 3 layers. Layer 1 is the background, layer 2 is the live cut-outs of people, while layer 3 are the foreground objects.
There is a few new keyboard controls as well :-
H toggles between hiding all on-screen buttons and revealing them. Keys 1,2,3 select layers 1,2 and 3 to allow you to move and resize them.
Project Information URL: http://drenton72.wordpress.com/2013/05/12/kinect-noneed4green-v2/
Project Download URL: Click here to download No Need 4 Green version 2
Project Source URL: Click here to download No Need 4 Green version 2