Testing box2d interactions with a webcam

I’m working with box2d interactions using this example https://github.com/kuflex/ofxKuBox2d

I have the example working but wanted to know if I can use my webcam for testing until I get a Kinect.

The program uses depth camera data from a Kinect that is stored inside a vector. Is there a way to get this data from a webcam for testing purposes?

The addon says that it uses openCV - background removal and contour filtering and changes positions of box2D objects and applying forces dependent on the contour.

I’m pretty new with OpenFrameworks & OpenCV so any help/examples would be greatly appreciated!

Thank You.