Command line from gui

637 views
Skip to first unread message

Kai Berger

unread,
May 6, 2021, 11:25:37 AM5/6/21
to col...@googlegroups.com
Hi,

I want to move from administering the gui for my projects to running the commands completely in bash.

Right now my bash script looks like this

colmap feature_extractor --database_path ./sfm/database.db --image_path ./scaled  --ImageReader.camera_model OPENCV --ImageReader.camera_params "1.4730239311768344e+03,1.4665157164670995e+03,5.3384827242505776e+02,9.5086779438255542e+02,1.7733710256078580e-01,-6.6412524226478009e-01,0.0,0.0"
colmap exhaustive_matcher --database_path ./sfm/database.db --SiftMatching.min_num_inliers 70
colmap mapper --image_path ./scaled --database_path ./sfm/database.db --export_path ./export/original_data --Mapper.abs_pose_min_num_inliers 70 --Mapper.min_num_matches 70 --Mapper.ba_refine_focal_length 0


However, I don't see export to text file yet and I am doubtful that colmap mapper is the right command to use. Basically my last step in gui is "start reconstruction" after setting "reconstruction options". 
So my two questions are:
1) how do i enforce export to text file via command line?
2) which command do i use equivalent to "start reconstruction" in the gui

Thanks

Kai

Wayne Cochran

unread,
May 6, 2021, 10:03:08 PM5/6/21
to COLMAP

This is essentially what I do to convert model to txt files (converts {cameras.images.points3d}.bin to .txt files):

colmap model_converter \

    --input_path  ./export/original_data/0 \

    --output_path ./export/original_data/0 \

    --output_type TXT

Johannes Schönberger

unread,
May 8, 2021, 5:38:24 AM5/8/21
to 'Kai Berger' via COLMAP
In theory, your commands look correct.

* Does the folder exist: ./export/original_data ?
* Can you share the command line output of COLMAP, so we can debug what's wrong here?
--
You received this message because you are subscribed to the Google Groups "COLMAP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to colmap+un...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages