如何使用 ARCore 相机捕捉物体的图像? [英] How can I capture an image using ARCore Camera with objects?
问题描述
我正在使用 ARCore 创建一个应用程序以在空白表面上显示一些图像.我想捕获显示对象的那个表面的图像.我在 AR 相机屏幕上放置了一个捕获按钮.
I am creating an application using ARCore to display some images on blank surface. I want to capture image of that surface where object is display. I have put a capture button on AR camera screen.
是否可以使用 ARCore 相机中的对象捕捉该视图?
Is it possible to capture that view with objects in ARCore camera?
推荐答案
如果您只需要 ARCore 视图的屏幕截图,您可以尝试使用一些 Android 功能,例如 PixelCopy.request(view, bitmap, (copyResult)->{})
在 ARCore 片段的 ArSceneView 上.
If you simply need a screenshot of the ARCore view you can try using some Android functionality such as PixelCopy.request(view, bitmap, (copyResult)->{})
on the ArSceneView of the ARCore fragment.
来源:https://codelabs.developers.google.com/codelabs/sceneform-intro/index.html?index=..%2F..io2018#15
这篇关于如何使用 ARCore 相机捕捉物体的图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!