Camera, Graphic and Mouse Class?

I’m new in Ruby, please help me out with this…

I want to implement some gesture input (e.g. eviacam ) by using web cam
as an input device and imitate mouse event to give a command to os. Is
there any possible to done it with Ruby programming. I know there’s
lots of open source in c/c++, but I got my own reason to choose Ruby.
Please give me some advices.

Any comments are welcome,
Thanks in advance…