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

While running SfM_SequentialPipeline.py or SfM_GlobalPipeline.py smf_data.bin and robust.bin files not being created. #559

Closed
jwingnut opened this issue May 16, 2016 · 5 comments

Comments

@jwingnut
Copy link
Contributor

jwingnut commented May 16, 2016

Hello, I'm a bit new at this and have tried to run SfM_SequentialPipeline.py and SfM_GlobalPipeline.py on a fresh install and both fail to create smf_data.bin and robust.bin. The following errors come up.

There is no defined intrinsic data in order to compute an essential matrix for the initial pair.
5. Colorize Structure

The input SfM_Data file "/home/user/Pictures/MVGProject/reconstruction_sequential/sfm_data.bin" cannot be read.
6. Structure from Known Poses (robust triangulation)
Compute Structure from the provided poses

The input SfM_Data file "/home/user/Pictures/MVGProject/reconstruction_sequential/sfm_data.bin" cannot be read.

The input SfM_Data file "/home/user/Pictures/MVGProject/reconstruction_sequential/robust.bin" cannot be read.

Is there a way I can find out what's causing this? I need the .bin files for use in openMVS.

@whuaegeanse
Copy link
Contributor

The camera of the input images does not exist in the file "sensor_width_camera_database.txt". There are two ways to resolve the problem:

  1. add option focal length like this :
    pIntrisics = subprocess.Popen( [os.path.join(OPENMVG_SFM_BIN, "openMVG_main_SfMInit_ImageListing"), "-i", input_dir, "-o", matches_dir, "-d", camera_file_params], "-f", "3500");
  2. add the camera info to the camera db file:sensor_width_camera_database.txt;

@jwingnut
Copy link
Contributor Author

Thanks for the quick reply!
Your explanation was very helpful. I ended up adding exif data to my files with exiftool as they did not have any model or focal length information.
I am using these as more of a test of concept than as an actual project, but in the future it'll likely be useful to add the camera sensor info to the "sensor_width_camera_database.txt" file as you mentioned in your comment above.
@whuaegeanse

@pmoulon
Copy link
Member

pmoulon commented May 24, 2016

I close the issue, since the solution was provided by the community.

@pmoulon pmoulon closed this as completed May 24, 2016
@saibeidex1
Copy link

There is no defined intrinsic data in order to compute an essential matrix for the initial pair
这个问题是因为图片的属性里没有带相机的参数,后来用官网下载的带相机参数的图片后,这个问题就好了。

@friendship1
Copy link

#559 (comment)

The camera of the input images does not exist in the file "sensor_width_camera_database.txt". There are two ways to resolve the problem:

  1. add option focal length like this :
    pIntrisics = subprocess.Popen( [os.path.join(OPENMVG_SFM_BIN, "openMVG_main_SfMInit_ImageListing"), "-i", input_dir, "-o", matches_dir, "-d", camera_file_params], "-f", "3500");
  2. add the camera info to the camera db file:sensor_width_camera_database.txt;

I think first there is a minor typo.
pIntrisics = subprocess.Popen( [os.path.join(OPENMVG_SFM_BIN, "openMVG_main_SfMInit_ImageListing"), "-i", input_dir, "-o", matches_dir, "-d", camera_file_params, "-f", "3500"])
this is right one.

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

5 participants