Difference between revisions of "OpenBR: Instalasi"

From OnnoWiki
Jump to navigation Jump to search
Line 11: Line 11:
 
==Instasi OpenCV==
 
==Instasi OpenCV==
  
    Download OpenCV 2.4.11, note Build OpenCV with video support
 
  
  cd ~/Downloads
+
  cd /usr/local/src
  unzip opencv-2.4.11.zip
+
wget https://github.com/opencv/opencv/archive/3.4.1.zip
  cd opencv-2.4.11
+
  sudo unzip 3.4.1.zip
 +
  cd opencv-3.4.1
 
  mkdir build
 
  mkdir build
 
  cd build
 
  cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
 
make -j4
 
sudo make install
 
cd ../..
 
rm -rf opencv-2.4.11*
 
  
 +
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_SHARED_LIBS=OFF ..
 +
make -j2
 +
make install
  
 
==Instalasi OpenBR==
 
==Instalasi OpenBR==

Revision as of 09:48, 22 May 2018

Sumber: http://openbiometrics.org/docs/install/#linux


Instalasi Aplikasi Pendukung

sudo su
apt update
apt -y install build-essential cmake cmake-curses-gui \
qt5-default libqt5svg5-dev qtcreator

Instasi OpenCV

cd /usr/local/src
wget https://github.com/opencv/opencv/archive/3.4.1.zip
sudo unzip 3.4.1.zip
cd opencv-3.4.1
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_SHARED_LIBS=OFF ..
make -j2
make install

Instalasi OpenBR

   Create a GitHub account, follow their instructions for setting up Git.
git clone https://github.com/biometrics/openbr.git
cd openbr
git checkout v1.1.0
git submodule init
git submodule update
   Build OpenBR!
mkdir build # from the OpenBR root directory
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j4
make install
   Hack OpenBR!
       Open Qt Creator IDE
       $ qtcreator &
       From the Qt Creator "File" menu select "Open File or Project...".
       Select "openbr/CMakeLists.txt" then "Open".
       Browse to your pre-existing build directory "openbr/build" then select "Next".
       Select "Run CMake" then "Finish".
       You're all set! You can find more information on Qt Creator here if you need it.
   (Optional) Test OpenBR!
   $ cd openbr/scripts
   $ ./downloadDatasets.sh
   $ cd ../build
   $ make test
   (Optional) Package OpenBR!
   $ cd openbr/build
   $ sudo cpack -G TGZ
   (Optional) Build OpenBR documentation!
       Build the docs
       $ pip install mkdocs
       $ cd openbr/docs
       $ sh build_docs.sh
       $ mkdocs serve
       Navigate to http://127.0.0.1:8000 in your browser to view the docs.



Referensi