Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

How to access live camera stream

Hi all,

I would like to access hololens live camera stream and process each of the frames. Could anyone give me some hints how to do it?

Thanks,

fireman

Best Answer

Answers

  • Options

    Do you want to do this from within the app or from outside the app? Within an app you can get images from the WebCam. In Unity you aren't yet able to automatically include holograms on the image. From outside the app you can use the rest API on the developer website. @DavidKlineMS has experience with some of the rest API, but I don't recall if he implemented getting live frames from the device.

    ===
    This post provided as-is with no warranties and confers no rights. Using information provided is done at own risk.

    (Daddy, what does 'now formatting drive C:' mean?)

  • Options

    THank you both for the information. Yes, this is inside the App. I would like to add barcode scan to my App. Is there any lib I can use for barcode scan?

  • Options

    @Pentose, I copied the camera code from https://developer.microsoft.com/en-us/windows/holographic/locatable_camera_in_unity to my project and it ran file. Ican see that it said "Saved photo to disk!". However, how can I find this photo on hololens? I could not found it in the Photo App.

    Thanks,

    fireman

  • Options

    @Fireman, within your application, can you see the file? The sample code you mention saves the file into your application's persistent data store (Application.persistentDataPath).

    Thanks!
    David

  • Options
    PentosePentose ✭✭

    If you want to view the picture in the Photos app, you'll have to save it to the Pictures folder. See this thread for more information: http://forums.hololens.com/discussion/comment/1661/#Comment_1661

  • Options

    @Pentose, I checked the thread, one post mentioned that the photo App path is something c:\xxx. Is this right? I do not expect a "C" drive on hololens

  • Options
    PentosePentose ✭✭

    HoloLens runs Windows 10. There's a C drive and a user and the user has a pictures folder just like on desktop Windows.

  • Options

    @DavidKlineMS
    ** can i access Pictures library folder in within app**. ?

    i have required to Choose or Select image in camera Roll folder and displayed in 3d object like plane. So is it possible to displayed images in 3d Object. please help me out Thanks in advance.

    Thanks,
    Ankit Sangani

Sign In or Register to comment.