Skip to content
This repository has been archived by the owner on May 29, 2021. It is now read-only.

SamMaoYS/SfmConverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sfm Converter

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

About

conver my camera poses to sfm format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages