Run Containers - rgherta/image-reconstruction GitHub Wiki

OpenMVG and OpenMVS use incompatible Eigen versions. Need to use docker containers with volume mount.

Build images

sudo docker build . -t openmvg_run

sudo docker build . -t openmvs_run

Run containers

sudo docker run -it –rm -v /home/path/to/in:/tmp/in -v /home/path/to/out:/tmp/out -e CAMERA_FOCAL=VALUE openmvg_run

sudo docker run -it –rm -v /home/path/to/in:/tmp/in -v /home/path/to/out:/tmp/out openmvs_run

Validate results

If not accurate, check focal in mm https://answers.opencv.org/question/17076/conversion-focal-distance-from-mm-to-pixels/

According to https://github.com/openMVG/openMVG/wiki/OpenMVG-on-your-image-dataset

it will be 1.2 * max(width, height)

Export results

To export results in obj format use the existing utility OpenMVS Viewer

Viewer -i scene_dense_mesh_refine_texture.ply -o export/myfile.obj --export-type obj --texture-lossless=true

or try to use TextureMesh --export-type obj