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

Accessing Camera Frame Bytes Directly Instead of Rendering it #62

Closed
TheMachineHere opened this issue Nov 1, 2017 · 4 comments
Closed

Comments

@TheMachineHere
Copy link

Hi,

I want to access the camera capture frame bytes directly from ARCore instead of rendering it.

Some Context:
I'm trying to take the camera bytes, convert it into texture, apply some shaders, convert back to bitmap, apply CPU algorithms to that bitmap like flood fill (which can't be done on GPU), convert back to texture, apply additional shaders, render image.

What would be the best way to do this?

Is there a way to access camera frame bytes directly (instead of having it render on the screen)?

@TheMachineHere
Copy link
Author

@nathanmartz Any help would be greatly appreciated

@andrelevi
Copy link

  • 1 Would like to know this as well.

@nathanmartz
Copy link

Sorry for the slow reply here. The best way to access the camera data is to use Session.setCameraTextureName() to access the camera data. Then write a bit of GL to blit that to a texture you can read from, render with, etc.

@inio
Copy link

inio commented Dec 15, 2017

With Developer Preview 2, we've added computervision sample code that shows how to get CPU access to the pixel data.

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

4 participants