ARCore:获取相机的分辨率 [英] ARCore : Get Camera's resolution

查看:262
本文介绍了ARCore:获取相机的分辨率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以获取相机的分辨率? (除非从头开始使用Android) 我没有在session.setDisplayGeometry()的setter上找到任何吸气剂,这并不是我真正期望的.

Is there any way to get camera's resolution ? (unless using Android from scratch) I did not found any getter, on a setter on session.setDisplayGeometry() that is not really what I expect.

我的目标是知道相机的图片比例,以便在显示屏上裁剪它,因为屏幕和相机的尺寸不同.

My goal is to know the camera's picture ratio to cropp it on my display since the screen and the camera do not use the same size.

谢谢.

推荐答案

在开发人员预览版中,无法通过ARCore API访问相机的分辨率.我在一个单独的问题的注释中询问了分辨率,它看起来像相机分辨率在开发人员预览中始终为1920x1080 .

There isn't a way to access the camera's resolution through the ARCore API in the developer preview. I asked about the resolution in comments of a separate question and it looks like the camera resolution in the developer preview will always be 1920x1080.

这篇关于ARCore:获取相机的分辨率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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