Run OpenMVG on Mac

Run OpenMVG on Mac. This time, we will run the tutorial that is installed by default and display the results.

Execution environment

macOS Mojave (version 10.14.5) pyenv+python 3.7.5 cmake 3.16.4 Xcode 11.3.1

procedure

Install OpenMVG

Install the required python library

$ pip install sphinx

Clone source code from Github

$ git clone --recursive https://github.com/openMVG/openMVG.git

Edit openMVG / src / CMakeLists.txt Before editing:

# ==============================================================================
# IMAGE IO detection
# ==============================================================================
find_package(JPEG QUIET)
find_package(PNG QUIET)
find_package(TIFF QUIET)

After editing: (Add set ~)

# ==============================================================================
# IMAGE IO detection
# ==============================================================================
set(CMAKE_FIND_FRAMEWORK LAST)
find_package(JPEG QUIET)
find_package(PNG QUIET)
find_package(TIFF QUIET)

Build using Xcode

$ mkdir openMVG_Build
$ cd openMVG_Build
$ cmake -DCMAKE_BUILD_TYPE=RELEASE -G "Xcode" . ../openMVG/src/
$ xcodebuild -configuration Release

Run the tutorial

Run the tutorial

$ cd software/SfM
$ python3 tutorial_demo.py 

In the tutorial, a 3D point cloud will be generated from the 10 images stored in the following folder. openMVG_Build/software/SfM/ImageDataset_SceauxCastle/images 100_7102.JPG

The internal parameters of the camera are also stored

$ cat K.txt
2905.88 0 1416 
0 2905.88 1064
0 0 1

Install MeshLab

Download and install the mac version from the MeshLab site https://www.meshlab.net/

From [File]> [Import Mesh.] openMVG_Build/src/software/SfM/tutorial_out/reconstruction_sequential/colorized.ply Read

If it is displayed as shown below, it is successful. image.png

Recommended Posts

Run OpenMVG on Mac
python on mac
Run NASA CEA on Mac OS X
Install pyenv on mac
Pyenv + virtualenv on Mac
Preparing to run ImageMagick + im4java on Mac OS
Install Ansible on Mac
Run Django on PythonAnywhere
Install Python on Mac
Install Python 3 on Mac
Run mysqlclient on Lambda
numba installation on mac
Install Python 3.4 on Mac
Install Caffe on Mac
Install mecab on mac
Install mecab-python on Mac
Try deepdream on Mac
Install pygame on python3.4 on mac
Install module on Anaconda (Mac)
Install OpenPose on mac (Catalina)
Install numba on your Mac
Run Tensorflow 2.x on Python 3.7
Handling of python on mac
Update python on Mac to 3.7-> 3.8
Install pandas 0.14 on python3.4 [on Mac]
Launch local server on mac
Notes on installing Python on Mac
Run Python CGI on CORESERVER
Install mecab-python on CentOS
Install mecab-python on Mac
Run unix command on python
Install Django on your Mac
Pyenv on Mac OSX Mavericks
Install pillow on Mac OSX 10.9
[Mac] Tips: Install pyquery on Mac [pyquery]
Use matplot libwidget on mac
Memo on Mac OS X
Notes on installing pipenv on Mac
Run IPython Notebook on Docker
Catalina on Mac and pyenv
Run YOLO v3 on AWS v2
Run CircuitPython on Seeeduino XIAO
Run Jupyter Notebook on windows
Run FreeBSD on Linux + qemu
Run OpenVino on macOS Catalina
Run YOLO v3 on AWS
Building a Python environment on Mac
tensor flow with anaconda on mac
Install anaconda on Mac → Add Library
MQTT on Raspberry Pi and Mac
Run MuJoCo on WSL (2) (also GUI)
How to install mysql-connector-python on mac
Install and run dropbox on Ubuntu 20.04
Implement TensorFlow Lite on Mac [2019 Edition]
Preparing to run Flask on EC2
Steps to install matplotlib on Mac
Anaconda environment construction on Mac (2018 version)
Convert wma to mp3 on Mac
Create a Python environment on Mac (2017/4)
Install Sphinx on Mac OS X
Run Tensorflow natively supported on windows
Introducing OpenCV on Mac with homebrew