在 ARCore 中访问图像数据字节 [英] Accessing Image Data Bytes in ARCore
问题描述
我创建了一个 ARCore 会话 并通过 Session#setCameraTextureName 方法来显示我的相机数据.我想访问纹理上显示的相机图像数据字节.
I've created an ARCore Session and attached an OpenGL texture id through the Session#setCameraTextureName method to display my camera data. I'd like to have access to the camera image data bytes displayed on the texture.
ARKit 和 Tango 提供对每帧图像字节的访问,但似乎没有任何内容这很容易在 ARCore API 中提供.
ARKit and Tango provide access to the image bytes for each frame but there doesn't seem to be anything that easily provides that in the ARCore API.
在使用 ARCore 时,还有其他方法可以访问图像字节吗?
Is there any other way I can access the image bytes when using ARCore?
推荐答案
从 ARCore v1.1.0 开始,有一个 API 可以访问当前帧的图像字节:
As of ARCore v1.1.0, there is an API to access the image bytes for the current frame:
https://developers.google.com/ar/reference/java/com/google/ar/core/Frame.html#acquireCameraImage()
这篇关于在 ARCore 中访问图像数据字节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!