Skip to content

Instantly share code, notes, and snippets.

@AmitGupta7580
Created April 3, 2022 09:44
Show Gist options
  • Save AmitGupta7580/194f506db3f2859e5a61a753b145bcf1 to your computer and use it in GitHub Desktop.
Save AmitGupta7580/194f506db3f2859e5a61a753b145bcf1 to your computer and use it in GitHub Desktop.

ORB-SLAM2 Setup

Clone Github Repository

Main Repo : Link OpenCV4 Repo : Link

Install Eigen3

Install Eigen 3.1 from Link Move Unziped Folder to /opt/. For build of Eigen read INSTALL file in folder.

Install Pangolin

Install v0.5 from Link

Install OpenCV 3.2

Resource Link

Download Release Zip

Download here : Link Extract : unzip <file>.zip

Initialize Virtual Envirement

sudo apt install python3-virtualenv virtualenv opencvx source opencvx/bin/activate

Clone OpenCV-contrib

git clone https://github.com/opencv/opencv_contrib.git

Build and Make OpenCV

mkdir build && cd build cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D INSTALL_PYTHON_EXAMPLES=ON -D INSTALL_C_EXAMPLES=OFF -D OPENCV_EXTRA_MODULES_PATH=~/robo/opencv_contrib/modules -D PYTHON_EXECUTABLE=~/robo/opencvx/bin/python3 -D BUILD_EXAMPLES=ON .. make -j8 sudo make install sudo ldconfig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment