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

Android: How to extract a frame of image in the video stream, align the RGB image and DEPTH image of the image and save it to a path #9989

Closed
oddityyyy opened this issue Nov 22, 2021 · 3 comments

Comments

@oddityyyy
Copy link

oddityyyy commented Nov 22, 2021

  • Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

  • All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)


Required Info
Camera Model D435
Firmware Version 05.12.15.50
Operating System & Version Android
Platform Android
SDK Version 2.49.0
Language unity
Segment Smartphone

Issue Description

Hello,
I want to know how to extract a frame of image in the video stream, align the RGB image and DEPTH image of the image and save it to a path.
At present, I want to use the camera example in librealsense-2.49.0\wrappers\android\tools\camera to save the RGB image and depth image of an image by pressing the record pause button. The final output is two aligned picture formats, RGB+DEPTH. Instead of .bag file.
image
It is best to be able to extract the last frame of the image.
Can you give me some advice, thank you very much!

@MartyG-RealSense
Copy link
Collaborator

Hi @oddityyyy You could refer to #5520 for the align part of the Android code and then look at #5446 for code to extract an Android image to PNG image file.

@MartyG-RealSense
Copy link
Collaborator

Hi @oddityyyy Do you require further assistance with this case, please? Thanks!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

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

No branches or pull requests

2 participants