如何从Arcore获取高质量的图像

发布于 2025-02-12 00:50:07 字数 61 浏览 1 评论 0 原文

**我需要带有Arcore的高质量图像。目前,我可以提取图像,但臂架未显示。 我试图从抽奖框架获取图像 **

**I need high quality image with arcore. Currently I can extract the image but the armodel does not show.
I have tried to get the image from draw frame
**

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不乱于心 2025-02-19 00:50:08

首先获得一些支持的相机配置,然后选择一个适合您的相机配置。例如,最高宽度*高度,

val bestConfig = session.getSupportedCameraConfigs(CameraConfigFilter(session)).maxByOrNull {
            it.imageSize.width * it.imageSize.height
        }

然后重新配置ARCORE会话以使用此相机配置。

session.cameraConfig = bestConfig

文档此处:

First get some supported camera configs and select one fitting you. For example highest width*height

val bestConfig = session.getSupportedCameraConfigs(CameraConfigFilter(session)).maxByOrNull {
            it.imageSize.width * it.imageSize.height
        }

Then reconfigure ARCore session to use this camera configuration.

session.cameraConfig = bestConfig

Docs here: https://developers.google.com/ar/reference/java/com/google/ar/core/Session#setCameraConfig-cameraConfig

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文