Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Low resolution on PV stream #160

Open
TimSchoonbeek opened this issue Feb 15, 2023 · 1 comment
Open

Low resolution on PV stream #160

TimSchoonbeek opened this issue Feb 15, 2023 · 1 comment

Comments

@TimSchoonbeek
Copy link

Hello everyone,

I am trying out this library and found that the PV camera images are only 760x428 pixels. Is there a reason for this? The camera should have much higher resolution, so I do not understand why it does not save this. I am recording long throw, eye tracking, and PV.

Additionally, the PV stream gets saved in raw format, which takes up a lot of space. I want to record +- 15 minute videos, which currently would result in approximately 35GB of data (and probably a crashing app). Is it possible to adjust the code to save directly in .png, which would save around a factor 5 in file size?

Thanks in advance for your answers.

@michalt38
Copy link

PV camera can work in the following profiles: https://learn.microsoft.com/en-us/windows/mixed-reality/develop/advanced-concepts/locatable-camera-overview.

StreamRecorder by default uses a profile that captures images in 760x428 resolution. You can change this setting a different value of kImageWidth (VideoFrameProcessor.cpp, 23rd line): https://github.com/microsoft/HoloLens2ForCV/blob/main/Samples/StreamRecorder/StreamRecorderApp/VideoFrameProcessor.cpp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants