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

Reconstruction using camera pose from ORB-SLAM2 #40

Open
BenedictusKent opened this issue Jul 10, 2023 · 1 comment
Open

Reconstruction using camera pose from ORB-SLAM2 #40

BenedictusKent opened this issue Jul 10, 2023 · 1 comment

Comments

@BenedictusKent
Copy link

Hi, I'm wondering if anyone tried to do reconstruction using camera pose from ORB-SLAM2?

I modified the ORB-SLAM2 code to capture each frame image, each frame's camera pose, and I set intrinsic the same for all frame because I need to reconstruct using only monocular camera (and ORB-SLAM2 use a fixed camera intrinsic as far as I know).

I formatted the result as similar as the ARKit dataset format and feed the result to the model. But for some reason, the resulted reconstruction is terrible as shown in the image below.
snapshot-bad

I tried to scan the same room with the ios-logger, and it worked fine as you can see from the image below.
snapshot-ok

I thought the problem is because the coordinate system of ORB-SLAM2 and ARKit is different.
ARKit: +x to right, +y to up, +z forward
ORB-SLAM2: +x to right, +y to down, +z to forward

I tried to convert ORB-SLAM2 coordinate system to ARKit by multiplying a rotation matrix (180 degrees) with the camera pose. On paper, the coordinate system should be aligned already. But the result is terrible, basically same as above.

Does anyone have any suggestions or clues what I should do?

@Gatsby23
Copy link

I think there maybe two reasons(just guess, not right):

  1. The pose from ORB-SLAM2 should be relative pose without the absolute scale which may drove the system worse.
  2. The pose from airkit is more accurate than the one you estimated(from ORB-SLAM2)

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

2 participants