Here is the Processing code I pasted together to stream the video from the Leapmotion to Spout.
I used this for my MFA thesis performance called In the Blink of Your Eye.
http://liviu.stoptime341.com/2015/05/05/saic/
you need to
-Allow images from the leapmotion control app
-have spout installed
-install LeapMotion for processing library - import form within processing
//code--->
import de.voidplus.leapmotion.*;
import development.*;
LeapMotion leap;
//
// Spout Sender
//
// Demonstrates drawing onto the Processing
// screen and sending out as a shared texture
// to a Spout receiver.
//
// Based on a Processing example sketch by by Dave Bollinger
// http://processing.org/examples/texturecube.html
//
// See Spout.pde for function details
//
// DECLARE A SPOUT OBJECT HERE
Spout spout;
void setup() {
// size(640, 480, removeFrameBorder(P3D));
size(640, 480, OPENGL);
leap = new LeapMotion(this);
// CREATE A NEW SPOUT OBJECT HERE
spout = new Spout();
// INITIALIZE A SPOUT SENDER HERE
spout.initSender("Spout Processing", width, height);
}
void draw() {
//int fps = leap.getFrameRate();
// Draw something
background(0, 90, 100);
if (leap.hasImages()) {
for (de.voidplus.leapmotion.Image camera : leap.getImages()) {
if (camera.isRight()) {
// left camera
image(camera, 0, 0);
} else {
// right camera
image(camera, 0, camera.getHeight());
//image(camera, 0, 300);
}
}
}
// SEND A SHARED TEXTURE HERE
spout.sendTexture();
// ========= CAMERA IMAGES =========
}
// over-ride exit to release sharing
void exit() {
// CLOSE THE SPOUT SENDER HERE
spout.closeSender();
super.exit();
}
//void leapOnFrame(){
// println("Leap Motion Frame");