openMVS icon indicating copy to clipboard operation
openMVS copied to clipboard

preparing images for dense reconstruction failed (errors loading images)

Open SherlockCheung opened this issue 1 year ago • 4 comments

I wanted to change the DensifyPointCloud.cpp content, but I entered my scene.mvs in OPT::strInputFileName and CMD reported an error with the following content:

18:25:56 [App ] error: failed loading image header 18:25:56 [App ] error: failed loading image header 18:25:56 [App ] error: failed reloading image 'C:/Users/lenovo/Desktop/openmv/openMVS-master/build/apps/DensifyPointCloud/undistorted_images/IMG_20221010_145115.jpg' 18:25:56 [App ] error: failed reloading image 'C:/Users/lenovo/Desktop/openmv/openMVS-master/build/apps/DensifyPointCloud/undistorted_images/IMG_20221010_145124.jpg' 18:25:56 [App ] error: preparing images for dense reconstruction failed (errors loading images)

but the images are available when I used the CMD command: "./DensifyPointCloud scene.mvs". So my issue is how do I modify the code (my input path) to make it work.Thank you.

SherlockCheung avatar Mar 11 '23 10:03 SherlockCheung

most probably there is an error in building the project, you mixed different versions of JPG library, it happened before, follow the build instructions

cdcseacave avatar Mar 11 '23 21:03 cdcseacave

Thank you for your answers.I had used the vcpkg.exe to build the project which also follow the build instructions,but it won't work.I discovered that CMakeList file(OpenMVS) used opencv which vcpkg.exe had built.You mean, I need to use OpenCV installed with CMAKE, not the OpenCV installed by VCPKG.

SherlockCheung avatar Mar 13 '23 07:03 SherlockCheung

no, if everything is built by VCPKG it will work, see the test build steps in https://github.com/cdcseacave/openMVS/blob/master/.github/workflows/continuous_integration.yml

cdcseacave avatar Apr 09 '23 17:04 cdcseacave

I have the same problem, any ideas how to resolve?

oferkITG avatar Jan 16 '24 05:01 oferkITG