Webcam as input

My project idea is a real time game, so i wanna take the hand centroid movement angle to move an object in the game. I have got the webcam playing in unreal, any idea for how to get the hand movement as input in unreal to move the object according to its range of motion angle?, p.s : i implemented the code in visual studio 2015 to track hand and move 2D objects?