Difference between revisions of "OpenBR: Instalasi"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "Sumber: http://openbiometrics.org/docs/install/#linux Install GCC 4.9.2 $ sudo apt-get update $ sudo apt-get install build-essential Install CMake 3.0.2...")
 
 
(19 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
  
 +
==Instalasi Aplikasi Pendukung==
  
 +
sudo su
 +
apt update
 +
apt -y install build-essential cmake cmake-curses-gui \
 +
        qt5-default libqt5svg5-dev qtcreator git
  
 +
==Instasi OpenCV==
  
    Install GCC 4.9.2
+
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
  
    $ sudo apt-get update
+
# openbr hanya mau menggunakan opencv 2.4.5
    $ sudo apt-get install build-essential
+
cd /usr/local/src
 +
wget https://github.com/opencv/opencv/archive/2.4.5.zip
 +
unzip 2.4.5.zip
 +
cd opencv-2.4.5
 +
mkdir build
 +
cd build
 +
cmake -DCMAKE_BUILD_TYPE=Release ..
 +
make -j4
 +
sudo make install
 +
cd ../..
 +
rm -rf opencv-2.4.5*
  
    Install CMake 3.0.2
+
==Instalasi OpenBR==
  
    $ sudo apt-get install cmake cmake-curses-gui
+
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
  
    Download OpenCV 2.4.11, note Build OpenCV with video support
+
===Build OpenBR!===
  
    $ cd ~/Downloads
+
cd /usr/local/src/openbr
    $ unzip opencv-2.4.11.zip
+
mkdir build
    $ cd opencv-2.4.11
+
cd /usr/local/src/openbr/build
    $ mkdir build
+
cmake -DCMAKE_BUILD_TYPE=Release ..
    $ cd build
+
make -j4
    $ cmake -DCMAKE_BUILD_TYPE=Release ..
+
make install
    $ make -j4
 
    $ sudo make install
 
    $ cd ../..
 
    $ rm -rf opencv-2.4.11*
 
  
    Install Qt 5.4.1
+
'''NOTE:''' tampaknya opencv 2.4.5 harus di compile manual supaya bisa menginstalasi openbr. Instalasi opencv secara automatis akan dapat opencv versi terbaru, openbr tidak suka :( ...
  
    $ sudo apt-get install qt5-default libqt5svg5-dev qtcreator
+
==Hack OpenBR!==
  
    Create a GitHub account, follow their instructions for setting up Git.
+
Buka Qt Creator IDE
  
    $ git clone https://github.com/biometrics/openbr.git
+
$ qtcreator &
    $ cd openbr
 
    $ git checkout v1.1.0
 
    $ git submodule init
 
    $ git submodule update
 
  
    Build OpenBR!
 
  
    $ mkdir build # from the OpenBR root directory
+
Klik
    $ cd build
 
    $ cmake -DCMAKE_BUILD_TYPE=Release ..
 
    $ make -j4
 
    $ sudo make install
 
  
    Hack OpenBR!
+
* "File" > "Open File or Project...".
 +
* Pilih "openbr/CMakeLists.txt" > "Open".
 +
* Browse "openbr/build" > "Next".
 +
* Pilih "Run CMake" > "Finish".
  
        Open Qt Creator IDE
+
Untuk menjalankan
  
        $ qtcreator &
+
$ br-gui
  
        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!
+
===(Optional) Test OpenBR!===
  
    $ cd openbr/scripts
+
cd openbr/scripts
    $ ./downloadDatasets.sh
+
./downloadDatasets.sh
    $ cd ../build
+
cd ../build
    $ make test
+
make test
  
    (Optional) Package OpenBR!
+
===(Optional) Package OpenBR!===
  
    $ cd openbr/build
+
cd openbr/build
    $ sudo cpack -G TGZ
+
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.
 
  
 +
===(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==
 
==Referensi==
  
 
* http://openbiometrics.org/docs/install/#linux
 
* http://openbiometrics.org/docs/install/#linux

Latest revision as of 17:12, 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
# openbr hanya mau menggunakan opencv 2.4.5
cd /usr/local/src
wget https://github.com/opencv/opencv/archive/2.4.5.zip
unzip 2.4.5.zip
cd opencv-2.4.5
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j4
sudo make install
cd ../..
rm -rf opencv-2.4.5*

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!

cd /usr/local/src/openbr
mkdir build
cd /usr/local/src/openbr/build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j4
make install

NOTE: tampaknya opencv 2.4.5 harus di compile manual supaya bisa menginstalasi openbr. Instalasi opencv secara automatis akan dapat opencv versi terbaru, openbr tidak suka :( ...

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".

Untuk menjalankan

$ br-gui


(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