Raspberry Pi + Pi camera + motion detection + motion graphics

Hello,
I would like to know if someone in this forum had ever used the Raspberry Pi and Pi camera as a sensor to control motion graphics (similar to Kinect but with pixels no IR).

If you know more information about this or if you have any library to recommend it would be very appreciated.

Thank you,

Iris