How to distort live video with Leap Motion?

edited November 2015 in Library Questions

Hey everyone! I'm making an interactive 'mirror' that allows users to distort live video of their face using the leap motion. I'm not planning on using a facial recognition library to do targeted distortion of features. Instead I'd like to alter regions of the screen depending on different gestures.

Does anyone know the best way to go about this? This is the pseudo code I have so far:

*loadPixels from camera

*Use nested for loop to iterate thru pixels and alter certain regions of the screen

*Call function that detects leap motion gestures/ changes the vars that control distortion


Any advice or examples are appreciated. Thanks!

Sign In or Register to comment.