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 - Capture Frame as Image/Bitmap #4455

Closed
erikgallegos opened this issue Jul 17, 2019 · 1 comment
Closed

Android - Capture Frame as Image/Bitmap #4455

erikgallegos opened this issue Jul 17, 2019 · 1 comment

Comments

@erikgallegos
Copy link

Required Info
Camera Model D415
Firmware Version 05.09.02.00
Operating System & Version MacOS 10.14.3
Platform Android
SDK Version 2.23.0
Language Kotlin
Segment Smartphone

Intro

I setup one of the sample Android projects and have been able to get it running fine (see screenshot below).
Screenshot_20190717-141252_BST Scan

Problem

Now I am trying to capture a frame from the stream and store it as an Image/Bitmap.
I am able to create a Bitmap out of any other View, but when I try it on my GLRsSurfaceView it creates an empty Bitmap. I'm triggering this capture with an on-screen Button, so I know there is data already being streamed.

Question

Is it possible to take a GLRsSurfaceView and store its contents to a Bitmap? If not, is there another way to achieve the same result?

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

1 participant