KinectDepthCamera Class |
Namespace: Accord.Video.Kinect
The KinectDepthCamera type exposes the following members.
Name | Description | |
---|---|---|
KinectDepthCamera(Int32) |
Initializes a new instance of the KinectDepthCamera class.
| |
KinectDepthCamera(Int32, CameraResolution) |
Initializes a new instance of the KinectDepthCamera class.
| |
KinectDepthCamera(Int32, CameraResolution, Boolean) |
Initializes a new instance of the KinectDepthCamera class.
|
Name | Description | |
---|---|---|
BytesReceived |
Received bytes count.
| |
FramesReceived |
Received frames count.
| |
IsRunning |
State of the video source.
| |
Resolution |
Resolution of depth sensor to set.
| |
Source |
A string identifying the video source.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SignalToStop |
Signal video source to stop its work.
| |
Start |
Start video source.
| |
Stop |
Stop video source.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
WaitForStop |
Wait for video source has stopped.
|
Name | Description | |
---|---|---|
NewFrame |
New frame event.
| |
PlayingFinished |
Video playing finished event.
| |
VideoSourceError |
Video source error event.
|
Name | Description | |
---|---|---|
HasMethod |
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) | |
IsEqual |
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.) | |
To(Type) | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) | |
ToT | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) |
The video source captures depth data from Microsoft Kinect depth sensor, which is aimed originally as a gaming device for XBox 360 platform.
Note |
---|
Prior to using the class, make sure you've installed Kinect's drivers as described on Open Kinect project's page. |
Note |
---|
In order to run correctly the class requires freenect.dll library to be put into solution's output folder. This can be found within the AForge.NET framework's distribution in Externals folder. |
Sample usage:
// create video source KinectDepthCamera videoSource = new KinectDepthCamera( 0 ); // set NewFrame event handler videoSource.NewFrame += new NewFrameEventHandler( video_NewFrame ); // start the video source videoSource.Start( ); // ... private void video_NewFrame( object sender, NewFrameEventArgs eventArgs ) { // get new frame Bitmap bitmap = eventArgs.Frame; // process the frame }