microsoft / microsoft/psi

Using Kinect and a Webcam

Open
#314 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
574
Forks
104
Avg merge
19m
Merged PRs (30d)
1

Description

Hi!

I am planning to use a Kinect camera and a webcam to gather data.
To gather data from Kinect I have tried and I know that this works:

// Kinect Camera 1
    var cam = new AzureKinectSensor(p, new AzureKinectSensorConfiguration()
    {
        DeviceIndex = 0,
        OutputColor = true,
        CameraFPS = FPS.FPS30,
        //WiredSyncMode = WiredSyncMode.Master,
        PowerlineFrequency = AzureKinectSensorConfiguration.PowerlineFrequencyTypes.SixtyHz,
        ExposureTime = TimeSpan.FromTicks(80000),
        ColorResolution = ColorResolution.R720p
    });
    var imageStream = cam.ColorImage.EncodeJpeg(75, DeliveryPolicy.LatestMessage);
    imageStream.Write("Image1", store);
    var decodedImageStream = imageStream.Decode();

However I am not certain at all how to gather the information from the webcam. Should be this way?
var webcam = new Microsoft.Psi.Media.MediaCapture(pipeline, 1920, 1080, 30);

How do I know that this will take data from the Webcam and not from the Kinect camera? is there any way to specify the name of the camera you want to gather the data from?

Thank you in advance.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the MediaCapture entry point and comparing it with the AzureKinectSensor setup shown in the issue. Determine how the intended webcam is selected when both devices are present; done means documenting or exposing a reliable way to choose the webcam separately from the Kinect.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
computer-vision, stream-processing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.