Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension to equirectangular images #77

Closed
ghost opened this issue Apr 28, 2016 · 4 comments
Closed

Extension to equirectangular images #77

ghost opened this issue Apr 28, 2016 · 4 comments

Comments

@ghost
Copy link

ghost commented Apr 28, 2016

There are some modules extended for equirectangular images in the source code.
I am really interested in sfm using panoramic images.
Is there any plan to release a whole sfm system for equirectangular images in the future, or is it already possible to perform sfm for equirectangular images?

@paulinus
Copy link
Member

The functionality is there already. It works with no changes as long as the images contain gpano information.
Things you may want to change to improve the results:

  • Make sure images are detected as equirectangular. Look at the generated file camera_models.json and see if projection_type is equirectangular. If it is not, rename that file to camera_models_overrides.json and edit the projection type.
  • Increase the image resolution and number of features to extract. For example set
feature_min_frames: 16000
feature_process_size: 4000

in config.yaml

@ghost
Copy link
Author

ghost commented Apr 30, 2016

Thank you for your quick reply.
It was thanks to your advice that I can perform sfm for equirectangular images.
(It is necessary for me to edit the projection type.)

I like this the best in many sfm libraries.
I hope further development of this project!

@salus-sage
Copy link

salus-sage commented Dec 28, 2016

Hi,
I tried building using a equirectangular image, which breaks, below is the full log. After i tried yoour suggestion to rename camera_model.json to camera_models_overrides.json and run bin/run_all another camera_models.json is created with projection type "perspective"

libdc1394 error: Failed to initialize libdc1394 2016-12-28 15:02:13,127 Extracting focal lengths for image panorama.jpg libdc1394 error: Failed to initialize libdc1394 2016-12-28 15:02:13,490 Extracting ROOT_HAHOG features for image panorama.jpg 2016-12-28 15:02:22,575 Found 18584 points in 8.88563394547s libdc1394 error: Failed to initialize libdc1394 2016-12-28 15:02:24,703 Matching 0 image pairs 2016-12-28 15:02:24,737 Matching panorama.jpg - 1 / 1 libdc1394 error: Failed to initialize libdc1394 2016-12-28 15:02:25,198 reading features 2016-12-28 15:02:25,225 Merging features onto tracks 2016-12-28 15:02:25,225 Good tracks: 0 libdc1394 error: Failed to initialize libdc1394 2016-12-28 15:02:25,542 0 partial reconstructions in total. libdc1394 error: Failed to initialize libdc1394 Traceback (most recent call last): File "/source/OpenSfM/bin/opensfm", line 34, in <module> command.run(args) File "/source/OpenSfM/opensfm/commands/mesh.py", line 22, in run reconstructions = data.load_reconstruction() File "/source/OpenSfM/opensfm/dataset.py", line 305, in load_reconstruction with open(self.__reconstruction_file(filename)) as fin: IOError: [Errno 2] No such file or directory: 'data/esg2/reconstruction.json'

@paulinus
Copy link
Member

@salus-sage You need to use more than 1 image to run OpenSfM

closing the issue since the original problem is solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants