Google Summer of Code: Multi-Block Local Binary patterns implementation. Pure Python
A post describing my way of implementing MB-LBP and achieved results.
The selected API
The API of the function was taken from OpenCv.
It was done in order to allow users to use OpenCv for training their object detector
and connect it later to
The training part will also be implemented for Scikit-Image.
This step will just allow users to be more flexible and also by doing this Scikit-Image
Face detection Framework will be tested on much earlier stage.
This is the visual description of MB-LBP that OpenCv uses:
For this part two function were implemented:
Function that computes the
MB-LBPgiven the left-top corner coordinates, width and height of one of 9 equal rectangles (See the previous part with OpenCv API).
Function that takes the computed
MB-LBPfeature and visualizes it on the selected image.
The hatched regions show the rectangles that has less summed intensity value than the central one.
The next stage will be to implement the same thing using
The code of functions can be found here. The code that was used for generating images in the post is here.
Implemented functions were covered with tests.