-
Notifications
You must be signed in to change notification settings - Fork 145
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
How to use the differents scripts #39
Comments
hi ggaspard54, sorry that i'm not really answering your question here, but would like to check with you, whether you encountered this issue when you used recorder_console! running: gives me this error: surprisingly, I've tried to download files directly off the portal, with the save icon, and i'm able to download data from my personal apps, but it doesn't seem to download for the recorder app. appreciate any comments/suggestions! :) hope you get an answer to your question soon! |
@ggaspard54 , the scripts are just examples showing how to process the data... The recorder console already uses a number of them. The readme (https://github.com/microsoft/HoloLens2ForCV/blob/main/Samples/StreamRecorder/README.md) tries to describe their usage. @kianwei96, are you connected via USB or Wi-Fi? perhaps you might need to update the IP address used? |
@fbogo thanks for the suggestion! I unchecked SSL in the device portal and it works now after some fiddling. Probably not the safest, but I guess it's ok for now. I did a test recording for long-throw depth, but am trying to figure out the difference between the pgm file with and with _ab suffix (eg. 132469884363655149.pgm vs 132469884363655149_ab.pgm). Is there existing documentation for how to interpret the saved files? Thanks! |
The '_ab' suffix stays for 'active brightness' image. |
@fbogo Oh Okay.. Thanks for your answer. Is there existing Visual Studio solution or software for interpret the saved files ? Thanks ! |
Hi @ggaspard54 , do you mean to use the images saved by the recorder? |
Hi @fbogo , Yes I want to reconstruct point clouds (like p31 in ECCV2020-ResearchMode-Repository) and get hand tracking joints. That's my main requirement. This in order to show what's HoloLens 2 see. I have never done that. I need to create another python script or I need to create a Visual Studio Project ( C++ Console ... other than that?) ? Thanks ! |
@ggaspard54 if you've gotten the depth information already, you can get your point cloud in .ply format from within the recorder_console by calling process X, or you can selectively process for point cloud only by running the save_pclouds.py script directly like this: python save_pclouds.py --recording_path /path/to/folder/here @fbogo thank you for addressing our queries. I have two quick questions regarding interpreting the depth data: please refer to this album for screenshots!
When assuming little-endian byte order, I get pixel values ranging up to ~65000 (2^16), which seems fine after consulting the source code. However, the image that I'm getting has some weird depth discontinuities along surfaces. This exists in both Long Throw and AHAT recordings. When assuming big-endian byte order, the depth continuity looks sane, but the pixel values now range up to ~1000, which is slightly puzzling to me. Am I doing something wrong here, or is one of them to be expected?
winrt::check_hresult(pDepthFrame->GetBuffer(&pDepth, &outDepthBufferCount)); Can I, from the values returned here, compute the actual distance/time taken for the IR ray to bounce to and fro? In other words, does a value of 100 in one depth image correspond to the same physical distance as a vlaue of 100 in a separate recording? Thanks a ton! |
Hi @kianwei96 , To your question 2: In AHAT mode, given the aliasing / wrap around characteristic, a value of 100 does not necessarily correspond to the same physical distance. |
Is there a difference in depth map quality between AHAT and Long Throw, apart from the difference in frequency and the aliased depth? if there's no difference I think I'll go with LT for the most part. Regarding Q2, can I confirm that LT mode's readings have stable physical correspondence? Thanks for the help as always :) |
Yes, LT mode readings should have "physical correspondence" -- if this means, there is no the wrapping around like in AHAT. |
Hello,
I'm novice and i'm trying to use the differents scripts.
I manage to use recorder_console to download et process files but I don't understand how to use the other scripts.
Does anyone have a procedure for using others?
thanks in advance
The text was updated successfully, but these errors were encountered: