Difference between revisions of "OpenBR: Instalasi"

From OnnoWiki
Jump to navigation Jump to search
Line 39: Line 39:
 
==Hack OpenBR!==
 
==Hack OpenBR!==
  
        Open Qt Creator IDE
+
BUka Qt Creator IDE
  
        $ qtcreator &
+
$ qtcreator &
  
        From the Qt Creator "File" menu select "Open File or Project...".
+
 
        Select "openbr/CMakeLists.txt" then "Open".
+
Klik
        Browse to your pre-existing build directory "openbr/build" then select "Next".
+
 
        Select "Run CMake" then "Finish".
+
* "File" > "Open File or Project...".
 +
* Pilih "openbr/CMakeLists.txt" > "Open".
 +
* Browse "openbr/build" > "Next".
 +
* Pilih "Run CMake" > "Finish".
 
         You're all set! You can find more information on Qt Creator here if you need it.
 
         You're all set! You can find more information on Qt Creator here if you need it.
  
    (Optional) Test OpenBR!
 
  
    $ cd openbr/scripts
+
===(Optional) Test OpenBR!===
    $ ./downloadDatasets.sh
 
    $ cd ../build
 
    $ make test
 
  
    (Optional) Package OpenBR!
+
$ cd openbr/scripts
 +
$ ./downloadDatasets.sh
 +
$ cd ../build
 +
$ make test
  
    $ cd openbr/build
+
===(Optional) Package OpenBR!===
    $ sudo cpack -G TGZ
 
  
    (Optional) Build OpenBR documentation!
+
$ cd openbr/build
 +
$ sudo cpack -G TGZ
  
        Build the docs
+
===(Optional) Build OpenBR documentation!===
  
        $ pip install mkdocs
+
$ pip install mkdocs
        $ cd openbr/docs
+
$ cd openbr/docs
        $ sh build_docs.sh
+
$ sh build_docs.sh
        $ mkdocs serve
+
$ mkdocs serve
  
 
         Navigate to http://127.0.0.1:8000 in your browser to view the docs.
 
         Navigate to http://127.0.0.1:8000 in your browser to view the docs.

Revision as of 11:36, 23 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 git

Instasi OpenCV

sudo su
apt -y install build-essential cmake libgtk-3-dev \
       python-pip libboost-all-dev libboost-dev
apt -y install libboost-python-dev
pip install numpy
pip install scipy
pip install scikit-image
pip install opencv-python

Instalasi OpenBR

cd /usr/local/src
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!

BUka Qt Creator IDE

$ qtcreator &


Klik

  • "File" > "Open File or Project...".
  • Pilih "openbr/CMakeLists.txt" > "Open".
  • Browse "openbr/build" > "Next".
  • Pilih "Run CMake" > "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!

$ 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