MVS-Texturing Exercise
mvs-texturing
參考鏈接:https://github.com/nmoehrle/mvs-texturing
準備工作
要求
檢測
下載其余的安裝包
檢查/usr/local/lib里無libpng。
sudo apt-get install libpng-dev
參考:https://www.cnblogs.com/sp-li/p/8306745.html
編譯
Compilation Build Status
git clone https://github.com/nmoehrle/mvs-texturing.git cd mvs-texturing mkdir build && cd build && cmake .. make (or make -j for parallel compilation)If something goes wrong during compilation you should check the output of the cmake step. CMake checks all dependencies and reports if anything is missing.
If you think that there is some problem with the build process on our side please tell us.
If you are trying to compile this under windows (which should be possible but we haven’t checked it) and you feel like we should make minor fixes to support this better, you can also tell us.
出錯:
嘗試解決:
下載eigen,發現已下載過。查看相關教程發現需復制Eigen文件夾至/usr/local/include,即可。 現嘗試重新編譯中…
//可能不對,是編譯過程中下載eigen3.3.2tar.gz,但是網絡情況不佳,導致通信協議中斷。
會成功的!
問題
問題:qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’
參考:https://blog.csdn.net/x356982611/article/details/71169940
下載qt:
https://blog.csdn.net/wuweifeng_2017/article/details/78322249—無用
下載安裝包后,使用“./qt……”會出現找不到該命令!!!!(fail!)
借鑒:http://www.pianshen.com/article/6147187926/
出現設備鎖以后,即 ubuntu提示E: 無法獲得鎖 /var/lib/dpkg/lock-frontend - open (11: 資源暫時不可用)
檢查用:
ps -e | grep apt
解除用:
sudo rm /var/lib/dpkg/lock-frontend
備份:
default.conf里為:
/usr/lib/x86_64-linux-gnu/qt4/bin
/usr/lib/x86_64-linux-gnu
參考:https://blog.csdn.net/anyuliuxing/article/details/90369822
將第一行改為自己安裝路徑下的bin目錄的路徑,第二行改為Qt5.12.3目錄的路徑
問題:/usr/bin/ld: 找不到 -lGL
解決:https://blog.csdn.net/u010159842/article/details/56833030
測試
imdir=<directory where you have your images>codedir=<directory where you want to do the compilation> cd $codedir# Download and compile MVE cd $codedir git clone https://github.com/simonfuhrmann/mve.git make -j8 -C mve# Compile UMVE cd mve/apps/umve && qmake && make# Download and compile texrecon cd $codedir git clone https://github.com/nmoehrle/mvs-texturing.git texrecon cd texrecon && mkdir build && cd buildcmake ..make -j8# Image import & bundling (images --> camera parameters) cd $imdir $codedir/mve/apps/makescene/makescene -i . scene $codedir/mve/apps/sfmrecon/sfmrecon scene# Multi-view stereo reconstruction (images + camera parameters --> depth maps) $codedir/mve/apps/dmrecon/dmrecon -s3 scene # -s3 downscales the images three times # Surface reconstruction (depth maps + camera parameters --> 3D model) $codedir/mve/apps/scene2pset/scene2pset -F3 scene point-set.ply $codedir/mve/apps/fssrecon/fssrecon point-set.ply surface.ply $codedir/mve/apps/meshclean/meshclean -t10 -c10000 surface.ply surface-clean.ply# Texturing (3D model + images + camera parameters --> textured 3D model) $codedir/texrecon/build/apps/texrecon/texrecon scene::undistorted surface-clean.ply textured# Inspect results $codedir/mve/apps/umve textured.obj執行到倒數第二步都沒有問題,最后一步apps/umve是一個目錄,所以應該是apps/umve/umve textured.obj
但是執行結果失敗:
現在嘗試安裝openGL
參考:https://blog.csdn.net/huangkangying/article/details/82022177
安裝有bug,需要更新apt,但是總有一點點下載不下來,所以更換源,參照https://blog.csdn.net/qq_41930236/article/details/93247412,為中科大的鏡像源:
總結
以上是生活随笔為你收集整理的MVS-Texturing Exercise的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: vue put 提交 400 Bad R
- 下一篇: sourcetree出现提交成功但推送失