Motion Detection

Aug 26, 2010 at 11:28 AM


Has anybody tried to integrate motion detection with the marker detection code available with Goblin XNA? Currently, my team has developed a code on Goblin XNA framework which overlays 3D objects on a marker and those objects respond to the event of a mouse click. The current requirement is to increase its functionality to make the code raise events with the movement of a physical object (a finger in my case). For this, we need to implement motion detection with the marker detection in the Goblin XNa framework. There is a source code already available in code project for motion detection (, but I am having difficulty in implementing that because the way it accesses the camera object is different from the way Goblin XNA works. This code uses the avifil32.dll internally. The Goblin Xna uses DShowNET dll. I am stuck at how to integrate these two. Does anybody has any idea about this. Can this be done. Any help is much appreciated.


Anshu Dutta


Sep 2, 2010 at 11:18 AM

Please see for the best way to access the camera image in Goblin XNA.

Access the RGB byte array in IntPtr image to perform any image processing you need.