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

Camera resolution and selecting a camera

RoelRoel
edited March 2017 in Questions And Answers

Hi,

I am developing an app for the HoloLens right now, which involves scanning barcodes (like QR codes and code 128). Currently this is working great, but there are some things that I'd like to see different.

The camera that's being used (is there more then 1 camera? And can I select them as DeviceInformation?) doesn't scan code 128 barcodes that are fairly big. When they are about 10 centimeters, I can decode them. When they are about half the size, they cannot be decoded. I made two pictures (attached both) that I made in the Mixed Reality Capture, but they cannot be decoded. Could it be possible that the camera is not good enough? Can I select another camera? As far as I know, the screenshots are taken with maximum resolution.

The FrameSourceGroup with MediaStreamType.VideoPreview automatically selects DeviceInformation with name 'MN34150'. Looking this device up on Google brings me to the this page. It seems that it is a full HD camera, but according to the screenshots, this is not full HD resolution. How is this possible?

Secondly, when using a MediaCapture, I cannot use the Mixed Reality Capture in the device portal. From the other side, when Mixed Reality Capture, I cannot initialize the MediaCapture. Is this normal behaviour and can I modify my code in such a way that I can use Mixed Reality Capture and the MediaCapture element to process frames at the same time?

I hope someone can help me, as these problems are kinda annoying. :smile:

Answers

  • Options

    Hey,
    Have you tried using the PhotoCapture-class? When I take a picture using that class I get a resolution of 2048x1152.
    I do not know whether it is possible to switch to a different camera. But if you find out I would be interested how you did it.

  • Options
    RoelRoel
    edited March 2017

    Thanks for your response. I'm looking for a non-Unity component, built into .NET Framework. Perhaps I should have mentioned that.

  • Options

    @Roel have you tried ZXing.NET?

Sign In or Register to comment.