Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Camera calibration (intrinsics) parameters in ARCore

Is there any way of getting camera intrinsics parameters from ARCore, similar to what ARKit provides? I've tried using LENS_INTRINSIC_CALIBRATION from ImageMetadata, but evidently this constant is not actually supported (I've tried using it on Pixel 2).

like image 270
DmitryA Avatar asked Jan 03 '18 18:01

DmitryA


2 Answers

As far as I understand this is certainly not available in ARCore at this point, especially since focal length is locked. I suggest you report this as an issue on the ARCore github and have people write their support for the feature and hopefully it will get implemented!

like image 55
nerk Avatar answered Sep 24 '22 23:09

nerk


It's possible. But these parameters are only gettable (like in ARKit).

ARCore's class CameraIntrinsics provides information about the physical characteristics of the device camera, for the camera image (CPU) or texture (GPU). The CameraIntrinsics is a long-lived object, and the properties of CameraIntrinsics may be updated every time Session.update() is called.

public class CameraIntrinsics

enter image description here

like image 24
Andy Jazz Avatar answered Sep 22 '22 23:09

Andy Jazz