Softwares > HARK-OPENCV > HARK-OPENCV Installation Instructions
HARK-OPENCV Installation Instructions
Pre-requisites
OpenCV
Any version later than OpenCV-1.0 is OK for HARK-OPENCV.
See OpenCV installation guide for the detail.
- Example in Ubuntu 10.04
sudo aptitude install libcv4 libhighgui4 libcvaux4 libcv-dev libhighgui-dev libcvaux-dev python-opencv opencv-doc
HARK
- harkfd (for HARK main software)
- hark-opencv (optional modules for the OpenCV)
See next subsection for the installation detail.
Installation from pre-compiled binaries
Compilation Environment
- OS
- Ubuntu 10.04 lucid (both 32bit and 64bit)
- Ubuntu 12.04 precise (both 32bit and 64bit)
For other environments, please go for the source compilation.
The pre-compiled binaries for lucid are supported up to HARK version 1.1.0.
To use HARK later than version 1.1.0 in lucid, go for the source compilation.
Installation
Setup your sources.list file to accept Debian packages from the HARK server.
- Ubuntu 10.04 (Lucid)
sudo sh -c 'echo "deb http://winnie.kuis.kyoto-u.ac.jp/HARK/harkrepos lucid non-free\ndeb-src http://winnie.kuis.kyoto-u.ac.jp/HARK/harkrepos lucid non-free" > /etc/apt/sources.list.d/hark.list'
- Ubuntu 12.04 (Precise)
sudo sh -c 'echo "deb http://winnie.kuis.kyoto-u.ac.jp/HARK/harkrepos precise non-free\ndeb-src http://winnie.kuis.kyoto-u.ac.jp/HARK/harkrepos precise non-free" > /etc/apt/sources.list.d/hark.list'
Set up your keys.
wget http://winnie.kuis.kyoto-u.ac.jp/HARK/harkrepos/public.gpg -O - | sudo apt-key add -
HARK server re-indexing
sudo apt-get update
HARK stack (harkfd, hark-opencv) installation
sudo apt-get install harkfd hark-opencv
Installation from source compilation (Optional)
Supported Environment
- OS
- 32bit/64bit Ubuntu 10.04 or later (until 12.04)
Step1 : OpenCV Installation
Fistly, install OpenCV fundamental packages before you proceed.
- See OpenCV installation guide for the detail.
Step2 : HARK Basic Package Installation
HARK repository and gpg-key settings
sudo sh -c 'echo "deb-src http://winnie.kuis.kyoto-u.ac.jp/HARK/harkrepos precise non-free" > /etc/apt/sources.list.d/hark.list' wget http://winnie.kuis.kyoto-u.ac.jp/HARK/harkrepos/public.gpg -O - | sudo apt-key add - sudo apt-get update
Hereinafter, the source compilation of only HARK-OPENCV package is explained.
We assume that the HARK basic packages (such as harkfd, flowdesigner-0.9.1-hark) are installed by pre-compiled bineries.
sudo apt-get install harkfd
If you use the Ubuntu 64bit version, you have to install the HARK basic packages by source compilation as well.
HARK-OPENCV package is installed by source compilation in the next subsection.
Step3 : HARK-OPENCV Package Installation
To install HARK-OPENCV, we need source codes of both hark-opencv and harkfd.
Firstly, move to your preferred directory to download source codes.
mkdir ${HOME}/YOUR_HARK_DOWNLOAD_DIR
cd ${HOME}/YOUR_HARK_DOWNLOAD_DIR
Download source codes from hark-fd-*.*.*.tar.gz and hark-opencv-*.*.*.tar.gz and unzip them.
tar zxvf hark-fd-*.*.*.tar.gz tar zxvf hark-opencv-*.*.*.tar.gz
Compile and install the source codes.
cd hark-opencv-*.*.*
./configure --prefix=/usr --with-hark-inc=${HOME}/YOUR_HARK_DOWNLOAD_DIR/harkfd-*.*.*/include/; make clean; make ; sudo make install;
The "*.*.*" describes the package version.
Here, we need header files of harkfd with --with-hark-inc option, so we downloaded harkfd source files.
Check the installation
To check the HARK-OPENCV installation, follow this section.
Run Flowdesigner in a new terminal.
flowdesigner
You will see something like following.
UINodeRepository::Scan() Scanning def /usr/lib/flowdesigner/toolbox done loading def files
If you see some OpenCV related errors here, some packages haven't been correctly installed.
Then, repeat the installation above.
HARK-OPENCV modules can be found at the following place.
Right click > New Node > FDOPENCV_HARK
