Image processing code for hand gesture recognition (Games Console)