With EmguCV, to capture an image from a web-cam we use :
Capture cap = new Capture(0);
Image < Bgr, byte > nextFrame = cap.QueryFrame();
...
...
But I don't know how to capture images from my Kinect, I have tried kinectCapture
class but it didn't work with me.
Thanks
Basically , you need to capture and Image from the ColorStream and convert to a EmguCV Image class :
Conversion to EmguCV Image from Windows BitMap (Kinect ColorStream):
You have a Windows Bitmap variable, where holds Kinect Frame.
Make the detection:
Resize
P.D (The helper method) :
When using EmguCV, you usually use another library to access the Kinect. For example, The Kinect For Windows SDK, or OpenNI. Then after accessing the camera using OpenNI or the SDK, you can edit the image that you project on the screen using EmguCV's tools. Here's some links of how to use EmguCV with OpenNI and the SDK
Hope this helps!