'How to get intrinsic and extrinsic parameter matrix of my camera using Google ARCore

I want to use Google ARCore to get the extrinsic and intrinsic parameter matrix of my mobile phone. So far, I only see documentation about getting the intrinsic parameter matrix but I don't see anything about getting the extrinsic parameter matrix. Is it possible to do that with Google ARCore?



Solution 1:[1]

Thought I'd just update this with an answer I found a while ago:

Frame frame = arSceneView.getArFrame();

Camera camera = frame.getCamera();
CameraIntrinsics intrinsics = camera.getImageIntrinsics();
Camera coreCamera = frame.getCamera();
Pose camPose = coreCamera.getPose();

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1