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

Error when calling openMVG_main_evalQuality: "The input SfM_Data file "/path/to/sfm_data.json" cannot be read." #1

Open
biesseck opened this issue Jun 3, 2017 · 1 comment

Comments

@biesseck
Copy link

biesseck commented Jun 3, 2017

I got the following error message when running EvaluationLauncher.py: "The input SfM_Data file "/path/to/sfm_data.json" cannot be read.".

In line 98 of this python script "outGlobal_dir" is passed as argument to openMVG_main_evalQuality program, but "matches_dir" should be used because "sfm_data.json" file is stored in "/path/to/SfM_quality_evaluation/Benchmarking_Camera_Calibration_2008_out/evaluation_output/fountain-P11/matching" directory. For my understanding the line 98 should be written as

command = command + " -c " + matches_dir + "/sfm_data.json"

instead of

command = command + " -c " + outGlobal_dir + "/sfm_data.json"

Hope this helps!

@pmoulon
Copy link
Member

pmoulon commented Jun 6, 2017

Hi @biesseck
Thank you for your feedback.
I just tried back on my side and your right I did not update this script for OpenMVG v1.x

You must change the line:
https://github.com/openMVG/SfM_quality_evaluation/blob/master/EvaluationLauncher.py#L89
from command = command + " -f 0" # Do not refine intrinsics
to
command = command + " -f NONE" # Do not refine intrinsics

and the line https://github.com/openMVG/SfM_quality_evaluation/blob/master/EvaluationLauncher.py#L98
from command = command + " -c " + outGlobal_dir + "/sfm_data.json"
to
command = command + " -c " + outGlobal_dir + "/sfm_data.bin"

And it will work.

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