svox2 icon indicating copy to clipboard operation
svox2 copied to clipboard

the function of "bash scripts/proc_colmap.sh <img_dir>"?

Open eternaldolphin opened this issue 3 years ago • 1 comments

As I see the command "bash scripts/proc_colmap.sh <img_dir>" is used to process "images from a normal perspective camera" Dose it means the parameters are not from the colmap but from the real world? And how to get the "images from a normal perspective camera" and corresponding parameters?like some specific camera?

eternaldolphin avatar Feb 25 '22 09:02 eternaldolphin

Colmap will calculate everything you need for you. Just install colmap (which is sadly not that easy on linux...). Take a lot of pictures around an objekt with as much locked settings less depth of field as possible as well as constant lighting from all sides. Most importantly dont change the focal length aka zoom while taking the images. Then you can run bash scripts/proc_colmap.sh <img_dir>, with <img_dir> pointing to a folder with all your images in it and it will create a new datastructure with everything you need to train the scene later on.

"images from a normal perspective camera" just means to not use some crazy fish eye lenses or extremely high zoom.

Maby you want to play around with the colmap gui version https://demuc.de/colmap/ to see what colmap is doing for you and if it creates the desired results of calculating the camera positions around your object correctly.

For me it was creating very bad results with the default settings set inside this file https://github.com/sxyu/svox2/blob/master/opt/scripts/run_colmap.py at the lines below 192 and 227. While using colmap gui showed very good results. So i removed the default settings from the python file to achive the same results.

Visuals3D avatar Feb 27 '22 15:02 Visuals3D