简体   繁体   中英

ARCore - reading superimposed image (screenshot of an AR scene)

I've been experimenting with ARCore for the past few months. I have read almost all the documentation. Talking in reference to the sample app, what I want to do is to extract the superimposed image from the app ie a frame containing the camera texture and also the bots drawn by opengl (like a screenshot). In preview 2, they have provided TextureReader class which extracts just the camera texture. I've been trying a lot but haven't been able to succeed in getting the superimposed image. Is there a way to do it or is it just impossible?

I think basically you want to have a screenshot from the OpenGL view. This question should help you: Screenshot on android OpenGL ES application

此答案专门用于HelloAR示例以捕获图像(并将其保存到设备中)的示例代码: 如何使用ARCore用相机拍照

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM