Generate camera sfm file
Files in data folder:
- cameraInit.sfm
generated by initial meshroom pipeline in CameraInit node - cameraInit_new.sfm
add poses for each view in cameraInit.sfm - cameras.sfm
generated by initial meshroom pipeline in StructureFromMotion node - cameras_new.sfm
replace poses in cameras.sfm with my camera poses
arguments:
- -h, --help
show this help message and exit - -i INPUT, --input INPUT
Input camera sfm file - -t TRAJECTORY, --trajectory TRAJECTORY
Input camera trajectory file - -m MODE, --mode MODE
mode 0: input cameraInit.sfm genereate poses for all views.
mode 1: input cameras.sfm from SfM node, generate poses for pose exists in cameras.sfm only. - -o OUTPUT, --output OUTPUT
Output camera sfm file
my code structure
- main folder/
- data/ (store cameraInit.sfm cameras.sfm bedroom.jsonl(my camera poses))
- main.py
Commands
mode 0
command 1:
python main.py -i data/cameraInit.sfm -t data bedroom.jsonl -o data/cameraInit_new.sfm
mode 1
command 2:
python main.py -i data/cameras.sfm -t data/bedroom.jsonl -m 1 -o data/cameras_new.sfm