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

How to parse the depth bin file captured by ScanCapture #17

Closed
fushi219 opened this issue Jan 17, 2023 · 2 comments
Closed

How to parse the depth bin file captured by ScanCapture #17

fushi219 opened this issue Jan 17, 2023 · 2 comments

Comments

@fushi219
Copy link

Thanks for your great job!
I found that the ScanCapture APP would also record the depth measured by lidar and save it as .bin and .condifence file, I wonder how could I parse them to get point cloud?
Thanks!

@sarlinpe
Copy link
Collaborator

You can easily read the depth maps and the ARKit confidences:

confidence = cv2.imread(
depth_path.with_suffix('.confidence.png').as_posix(), cv2.IMREAD_ANYDEPTH)
depth = np.fromfile(depth_path, dtype=np.float32).reshape(confidence.shape)
depth[confidence < min_confidence] = 0

@fushi219
Copy link
Author

Got it! Thank you so much!

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

3 participants