-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 implement taking a photo (to obtain depth images) in Android? #13617
Comments
Hi @1programmer2dfg3 The RealSense Android wrapper's Capture example detailed at #8551 (comment) may meet your needs. In the Capture example, you can edit the config.enableStream instructions at lines 163 and 164 of the example to set your own preferred resolution for the program to use. |
Thanks, how do I get the HD image of my current camera ?the bitmap |
Look at the comments there is a Mat this class I test here in the Android SDK is not, where does this come from, can you help me to write a complete depth image bitmap example? The previous comments were a bit vague, thank you |
If a 'native' Android application is written then functions in the librealsense SDK's C++ API can be accessed from the Android app. There is a further Android bitmap creation reference at #6089 and the RealSense user in that case shares their solution at #6089 (comment) There is also an Android project that converts RealSense frames to OpenCV mat and then converts to a bitmap at https://github.com/mcanyucel/realsense-android-combined: There is a discussion too about bitmap creation here: There are not many eamples of creating bitmaps with the RealSense Android wrapper though, and I am not able to provide advice about programming a complete RealSense Android wrapper program unfortunately as my programming knowledge of that wrapper is limited. I hope that the additional references in this comment will help you to make progress in your project. |
I need to capture images from a depth camera and be able to set the image resolution. How can I achieve this?
The text was updated successfully, but these errors were encountered: