Cov txheej txheem:

Dawb Photogrammetry ntawm Mac OS: Los Ntawm Duab Mus Rau 3D Qauv: 5 Kauj Ruam
Dawb Photogrammetry ntawm Mac OS: Los Ntawm Duab Mus Rau 3D Qauv: 5 Kauj Ruam

Video: Dawb Photogrammetry ntawm Mac OS: Los Ntawm Duab Mus Rau 3D Qauv: 5 Kauj Ruam

Video: Dawb Photogrammetry ntawm Mac OS: Los Ntawm Duab Mus Rau 3D Qauv: 5 Kauj Ruam
Video: How to Check your mirrors at airbnb 2024, Hlis ntuj nqeg
Anonim
Dawb Photogrammetry ntawm Mac OS: Los Ntawm Duab Mus Rau 3D Qauv
Dawb Photogrammetry ntawm Mac OS: Los Ntawm Duab Mus Rau 3D Qauv

Photogrammetry yog kev siv cov duab/yees duab los ntsuas qhov nrug ntawm cov khoom (ua tsaug Webster). Tab sis rau lub hom phiaj niaj hnub, nws feem ntau siv los ua tus qauv 3D ntawm qee yam los ntawm lub ntiaj teb tiag tiag yam tsis xav tau 3D Scanner.

Muaj ntau ntau cov software tawm muaj uas koj tuaj yeem siv rau photogrammetry, suav nrog qee qhov kev xaiv pub dawb, tab sis kuv pom tias ntau (xws li Meshroom) tsis muaj Mac tsim muaj. Lossis lawv yuav xav tau daim npav duab nrog CUDA txhawb nqa (tsis zoo ib yam nrog Macbook). Yog li ntawd txhais tau tias qee qhov khawb ib puag ncig.

Thaum kawg kuv dawm ntawm kab lus zoo no:

Qhov no coj mus rau tsab ntawv tsim tom qab:

Nws coj kuv mus ib ntus kom nws ua haujlwm, tab sis thaum kuv tau txais nws mus, Kuv zoo siab heev nrog cov txiaj ntsig uas kuv pib tau txais. Yog li, kuv yuav ua txhaum cov kauj ruam me ntsis ntxiv, tshwj xeeb tshaj yog rau koj Mac cov neeg siv tawm muaj.

Kauj ruam 1: Tau COLMAP

COLMAP (https://colmap.github.io/install.html) yog qhov zoo, me ntsis cuab yeej pub dawb rau kev pib nrog photogrammetry. Kuv sim nws ntawm nws tus kheej thaum xub thawj, tab sis qee qhov ntawm cov kauj ruam tom ntej xav tau CUDA. Yog li kuv yuav tsum pib saib dua. Tias yog vim li cas peb yuav siv lwm cov software rau cov kauj ruam tom ntej.

Rub tawm COLMAP yog qhov yooj yim. Koj tuaj yeem ua raws cov lus qhia ntawm no:

Los yog koj tuaj yeem saib qhov kev tso tawm zaum kawg ntawm lawv nplooj ntawv github: https://github.com/colmap/colmap/releases thiab rub tawm qhov tseeb COLMAP-dev-mac-no-cuda.zip

Thaum koj rub lub zip, unzip nws thiab lo COLMAP app rau hauv koj daim ntawv thov.

Kauj ruam 2: Tau thiab Tsim OpenMVS

Txoj haujlwm tom ntej uas kuv siv los pab ua kom tiav cov qauv 3d yog OpenMVS (https://cdcseacave.github.io/openMVS/). Koj yuav tsum tau tsim qhov no ntawm koj lub tshuab, yog li kuv yuav sim ua qhov no kom tsis muaj mob li sai tau.

Qhov txuas rau cov lus qhia kom tau thiab tsim OpenMVS ntawm Mac yog ntawm no:

tab sis kuv tau hloov kho me ntsis. Nov yog qhov kuv tau ua:

  • Rub tawm Xcode los ntawm App khw

    Qhib Xcode thiab pom zoo rau daim ntawv tso cai

  • Nruab Homebrew yog tias koj tseem tsis tau muaj nws:
  • Nruab GIT:
  • Nruab CMake:
  • Qhib lub davhlau ya nyob twg thiab ua raws li cov ntawv hauv qab no. Nco ntsoov tias koj ua nws los ntawm qhov chaw koj xav kom openMVS nyob (Kuv muaj 'Cov phiaj xwm' nplaub tshev hauv qab kuv tus neeg siv tseem ceeb):

#Install dependenciesbrew hloov tshiab brew nruab boost eigen opencv cgal ceres-solver main_path = `pwd` #VCGLib (Yuav Tsum) git clone https://github.com/cdcseacave/VCG.git vcglib #Tau txais OpenMVS qhov chaw: git clone https:/ /github.com/cdcseacave/openMVS.git #Build OpenMVS mkdir openMVS_build && cd openMVS_build cmake…/openMVS -DCMAKE_BUILD_TYPE = Tso tawm -DVCG_ROOT = "$ main_path/vcglib" -G "Xcode"

xcodebuild -configuration Tso

Kauj Ruam 3: Tsim Tsab Ntawv Photogrammetry

Tom qab ntawd kuv tau tsim ib tsab ntawv los ntawm ib qho ntawm no:

Nov yog qhov kuv tau xaus nrog (xyuam xim rau cov ntawv hauv tsab ntawv, vim nws xav kom koj teeb tsa qee qhov chaw):

Photogrammetry.sh

# Cov ntsuas no tshwj xeeb rau lub khoos phis tawj # Khaws cov npe tam sim no: currDir = $ PWD

# tau txais lub npe nplaub tshev raws li sib txawv

myfolder = $ {PWD ##*/}

# Teeb colmap phau ntawv teev npe (hloov qhov no mus rau qhov twg koj tau rub tawm colmap, hloov 'dev' nrog tus lej version yog tias tsim nyog):

colDir =/Applications/COLMAP.app/Contents/MacOS/colmap

# Teeb tsa openMVS cov npe (hloov qhov no mus rau 'bin/Release' nplaub tshev uas koj tau rub tawm thiab tsim openMVS)

oMVS =/Users/joecooning/Projects/openMVS_build/bin/Tso tawm

# Teeb Cov Ntawv Qhia Ua Haujlwm (Kuv tsim daim nplaub tshev ua haujlwm ib ntus hauv kuv 'Cov Haujlwm' phau ntawv teev npe kom ua cov ntaub ntawv hauv)

workDir =/Cov neeg siv/joecooning/Cov Haujlwm/3dscans/chaw ua haujlwm/$ myfolder/

mkdir $ ua haujlwm dir

cp *-j.webp

$ colDir feature_extractor --database_path database.db --image_path.

$ colDir exhaustive_matcher --database_path database.db mkdir sparse $ colDir mapper --database_path database.db --image_path. --output_path sparse $ colDir model_converter --input_path sparse/0 --output_path model.nvm --output_type NVM $ oMVS/InterfaceVisualSFM model.nvm $ oMVS/DensifyPointCloud model.mvs $ oMVS/ReconstructMesh model_dense.mvs $ daws teeb meem-qib 1 qauv_dense_mesh.mvs $ oMVS/TextureMesh-kev xa tawm yam ob -o $ myfolder.obj model_dense_mesh_refine.mvs

mkdir $ currDir/qauv/

cp *.obj $ currDir/qauv/cp *.mtl $ currDir/qauv/cp *Kd-j.webp

cd $ currDir

Kauj ruam 4: Khiav Tsab Ntawv

Tam sim no koj muaj tsab ntawv, koj tuaj yeem thaij duab ntawm ib yam khoom uas koj xav ua tus qauv 3d. Muaj lwm cov ntawv thiab vis dis aus tawm uas tuaj yeem muab qee cov lus qhia zoo rau yuav ua li cas thiaj thaij tau duab zoo tshaj plaws rau lub hom phiaj ntawm kev yees duab (xws li qhov no: https://www.tested.com/art/makers/460142-art- duab…).

Tab sis cov duab ntawd rau hauv daim nplaub tshev, the copy the script you made into the folder.

Los ntawm koj lub davhlau ya nyob twg, mus rau daim nplaub tshev uas cov duab thiab cov ntawv sau thiab khiav:

sh Photogrammetry.sh

Tsab ntawv yuav ua lwm txoj haujlwm rau koj. Thov nco ntsoov tias qhov no tuaj yeem siv sijhawm me ntsis los ua (tshwj xeeb yog tias koj siv ntau cov duab zoo nkauj). Kuv yuav hais qhia sim ua qee cov duab me me ua ntej. Qee qhov yooj yim, piv txwv cov duab teeb tuaj yeem pom ntawm no: (https://www.regard3d.org/index.php/demo-models)

Pom zoo: