GithubHelp home page GithubHelp logo

Using Kinect and a Webcam about psi HOT 3 OPEN

sanmii avatar sanmii commented on June 14, 2024
Using Kinect and a Webcam

from psi.

Comments (3)

chitsaw avatar chitsaw commented on June 14, 2024

Yes, you can specify the name of the camera via the deviceId string parameter in the MediaCapture constructor.

from psi.

sanmii avatar sanmii commented on June 14, 2024

Is there any example? Since all the examples with DeviceId I have found are for Kinect or AudioSource functions.

from psi.

chitsaw avatar chitsaw commented on June 14, 2024

I'm not sure if there are any examples with deviceId specifically, but based on your example above, you would so something like this:

var webcam = new Microsoft.Psi.Media.MediaCapture(pipeline, 1920, 1080, 30, deviceId: "Integrated Webcam");

Replace "Integrated Webcam" with a string that represents the device friendly-name of the webcam you want to capture from. Note that the selected device must support the specified width/height/framerate combination. If you pass in an invalid deviceId/capture combination, you should get a helpful exception message with a list of available deviceIds and capture formats.

from psi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.