访问ARCore中的图像数据字节 [英] Accessing Image Data Bytes in ARCore

查看:380
本文介绍了访问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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆