instant-ngp icon indicating copy to clipboard operation
instant-ngp copied to clipboard

Aruco2nerf script

Open juanmacaaz opened this issue 2 years ago • 1 comments

First of all, I hope you are all doing great.

I have dedicated myself to using aruco to find the POSE of the cameras to train a scene in NERF and I have created a script that creates a transform file in the same standard as intant ngp.

  1. We need to calibrate the camera, for this we can use the following command:

python .\aruco2nerf.py --folder_dir calibration_imgs --calib

In the folder_dir argument we have to indicate the images to calibrate the camera. We use charuco for the calibration. As you can see in the image

IMG_20220831_120554

  1. Once calibrated the camera, we can obtain the poses with the following code:

python .\aruco2nerf.py --folder_dir images

In my case I have created a 3x3 arucos board where in the center you can place the object, as you can see in the following image.

IMG_20220901_194455

Thank you very much.

juanmacaaz avatar Sep 05 '22 19:09 juanmacaaz

Ty so much, a really great job ;=)

christian-ferre avatar Sep 10 '22 17:09 christian-ferre

@juanmacaaz Are results better than colmap? I am getting similar ok kinda result with both.

satpalsr avatar Jan 21 '23 15:01 satpalsr

@juanmacaaz Are results better than colmap? I am getting similar ok kinda result with both.

The results are similar, the main difference is that colmap needs an exponential execution time, while using aruco this time becomes linear.

juanmacaaz avatar Jan 22 '23 12:01 juanmacaaz

@juanmacaaz Are results better than colmap? I am getting similar ok kinda result with both.

The results are similar, the main difference is that colmap needs an exponential execution time, while using aruco this time becomes linear.

Do the dimensions match the actual model dimensions using this method,as in colmap,it is up scaling the model. Thanks

Saddy21 avatar May 15 '23 15:05 Saddy21