Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extract camera poses using ARKit #157

Open
Shisthruna28 opened this issue Oct 9, 2020 · 3 comments
Open

extract camera poses using ARKit #157

Shisthruna28 opened this issue Oct 9, 2020 · 3 comments

Comments

@Shisthruna28
Copy link

I wanted to take my Ipad pro2020 around the room and get images with camera poses. Can anyone suggest me how to use ARKIt to extract camera poses

@philipturner
Copy link
Contributor

Derive the position and orientation from the camera's transform matrix. For more information, investigate my app's source code at AR MultiPendulum or ARHeadsetKit.

@num-doc
Copy link

num-doc commented Jan 10, 2023

@philipturner How did you export camera extrinsic parameters from arkit? Did you use camera.transform? Did you re-orient arkit rotation matrix? How was ARConfiguration.WorldAlignment set in arkit?
How does arkit output parameters (4*4) translate into camera rotation translation matrix.

Thank you for your time

@philipturner
Copy link
Contributor

How did you export camera extrinsic parameters from arkit? Did you use camera.transform?

How does arkit output parameters (4*4) translate into camera rotation translation matrix.

https://github.com/philipturner/ARHeadsetKit/blob/174385004728e8c9d047904f0497d9d7793aa764/Sources/ARHeadsetKit/User%20Settings/Camera%20Measurements/CameraMeasurementsExtensions.swift#L14-L162

How was ARConfiguration.WorldAlignment set in arkit?

https://github.com/philipturner/ARHeadsetKit/blob/174385004728e8c9d047904f0497d9d7793aa764/Sources/ARHeadsetKit/App%20Setup/AppCoordinator.swift#L65-L84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants