Search code examples
androidandroid-cameraarcore

ARCore : Get Camera's resolution


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.

Thanks.


Solution

  • 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.