Skip to content

Background removal (aka "green-screen effect") using Kinect for Windows version 2.

License

Notifications You must be signed in to change notification settings

Vangos/kinect-2-background-removal

Repository files navigation

Kinect Background Removal (Kinect version 2)

Background removal (aka "green-screen effect") using Kinect for Windows version 2.

YouTube videos

Example usage

    void Reader_MultiSourceFrameArrived(object sender, MultiSourceFrameArrivedEventArgs e)
    {
        var reference = e.FrameReference.AcquireFrame();

        var colorFrame = reference.ColorFrameReference.AcquireFrame();
        var depthFrame = reference.DepthFrameReference.AcquireFrame();
        var bodyIndexFrame = reference.BodyIndexFrameReference.AcquireFrame();

        if (colorFrame != null && depthFrame != null && bodyIndexFrame != null)
        {
            // Update the image source.
            camera.Source = _backgroundRemovalTool.GreenScreen(colorFrame, depthFrame, bodyIndexFrame);
        }

        colorFrame.Dispose();
        depthFrame.Dispose();
        bodyIndexFrame.Dispose();
    }

About

Background removal (aka "green-screen effect") using Kinect for Windows version 2.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages