anguelos / bilde

Buffer Imaging Library, Dirty and Extendable

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bilde

(B)uffer (I)maging (L)ibrary, (D)irty and (E)xtendable

A library for writing procedural computer vision code in C++

  • Header only No linking complications! Just copy it in your source tree.

  • High C++ template use

  • Define algorithms once, use them directly on several back-ends. With a mechanism based on implicit template instantiation, an algorithm is defined as a single function, and will seemlesly run several image containers such as cv::Mat, IplImage, octave arrays, numpy arrays.

Demos:

  • SRS-LBP feature extractor:

Cross compiling for win32 (static build) and running in debian based linux.

Install dependencies:

sudo apt-get install autoconf automake autopoint bash bison bzip2 flex gettext git g++ gperf intltool libffi-dev libgdk-pixbuf2.0-dev libtool-bin libltdl-dev libssl-dev libxml-parser-perl make openssl p7zip-full patch perl pkg-config python ruby scons sed unzip wget xz-utils g++-multilib libc6-dev-i386
export MXE_ROOT="$HOME/tools/mxe"
mkdir -p "$HOME/tools"
cd "$HOME/tools"
git clone https://github.com/mxe/mxe.git
cd mxe
make opencv boost

Compile:

./compile_static_mxe.sh ./src/lbpFeatures2.cc /tmp/lbp_features2.exe

Get help:

wine /tmp/lbp_features2.exe

Run:

wine /tmp/lbp_features2.exe -i ./sample_data/PICT2466.png > /tmp/features.csv

Compiling in ubuntu:

sudo apt-get install libopencv-dev libhighgui-dev libprotobuf-dev libwebp-dev #  depending on your system you might need other packages
cd src
make lbpFeatures2

Running Feature extraction for the SRS-LBP pipeline:

./src/lbpFeatures2 -r 1 2 3 4 5 6 7 8 9 10 11 12 -i ./sample_data/bw_text.tiff >> /tmp/features.csv

Citation:

@inproceedings{nicolaou2015sparse,
  title={Sparse radial sampling LBP for writer identification},
  author={Nicolaou, Anguelos and Bagdanov, Andrew D and Liwicki, Marcus and Karatzas, Dimosthenis},
  booktitle={2015 13th International Conference on Document Analysis and Recognition (ICDAR)},
  pages={716--720},
  year={2015},
  organization={IEEE}
}

About

Buffer Imaging Library, Dirty and Extendable

License:GNU Lesser General Public License v3.0


Languages

Language:C++ 90.8%Language:Python 5.1%Language:CMake 2.7%Language:Shell 1.1%Language:Makefile 0.3%