Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangganlin committed Dec 15, 2023
1 parent b629697 commit cf025f4
Show file tree
Hide file tree
Showing 1,339 changed files with 459,169 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*.exe
*.out
*.app

__pycache__
scripts/view_reconstruction
build
two_views.txt
Expand Down
66 changes: 65 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,67 @@ Ubuntu 22.04
* OpenCV
* (Optional) COLMAP (Recommand version 3.6)

### Ceres
More details can be found on the [Ceres official website](http://ceres-solver.org/installation.html)
```bash
# install dependencies of Ceres Solver
sudo apt-get install cmake libgoogle-glog-dev libgflags-dev libatlas-base-dev libeigen3-dev libsuitesparse-dev

# download and install Ceres Solver
wget https://github.com/ceres-solver/ceres-solver/archive/refs/tags/1.14.0.tar.gz
tar zxf 1.14.0.tar.gz
mkdir ceres-bin
cd ceres-bin
cmake ../ceres-solver-1.14.0
make -j3
make install
```
### TheiaSfM
More details can be found on the [TheiaSfM official website](http://theia-sfm.org/building.html)
```bash
# install dependencies of Theia
sudo apt-get install libopenimageio-dev librocksdb-dev libatlas-base-dev rapidjson-dev libgtest-dev
cd thirdparty/TheiaSfM
mkdir build && cd build
cmake ..
make -j4
sudo make install
```

### PyBind11
```bash
git clone [email protected]:pybind/pybind11.git
cd pybind11 && mkdir build && cd build
cmake .. && make -j4
sudo make install
```

### OpenCV
More details can be found on the [OpenCV official website](https://docs.opencv.org/4.x/d7/d9f/tutorial_linux_install.html)
```bash
# Install minimal prerequisites (Ubuntu 18.04 as reference)
sudo apt update && sudo apt install -y cmake g++ wget unzip
# Download and unpack sources
wget -O opencv.zip https://github.com/opencv/opencv/archive/4.x.zip
wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/4.x.zip
unzip opencv.zip
unzip opencv_contrib.zip
# Create build directory and switch into it
mkdir -p build && cd build
# Configure
cmake -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-4.x/modules ../opencv-4.x
# Build
cmake --build .
```

## Install
```bash
mkdir build && cd build
cmake ..
make
```


## Demo
### 1DSfM Madrid_Metropolis
```bash
Expand Down Expand Up @@ -61,4 +122,7 @@ The reconstruction is stored in ```output``` folder. The format of the result is
```bash
./view_reconstruction --reconstruction <RESULT_FILE>
```

E.g. For ```1DSfM Madrid_Metropolis```
```bash
./thirdparty/TheiaSfM/build/bin/view_reconstruction --reconstruction output/Madrid_Metropolis
```
Empty file added scripts/log/.gitkeep
Empty file.
Loading

0 comments on commit cf025f4

Please sign in to comment.