Texture Matching using Local Binary Patterns (LBP)
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data/lbp
docs/images
.gitignore
README.md
lbp.pkl
perform-testing.py
perform-training.py

README.md

Texture Matching using Local Binary Patterns (LBP)

Related blog post explaining the code - Click Here

Usage

Perform training using

python perform-training.py -t data/lbp/train/ -l data/lbp/class_train.txt

Perform testing using

python perform-testing.py -t data/lbp/test/ -l data/lbp/class_test.txt

Results

Let's check out the results.

Input Image -- ROCK Class

Here is an input image of a rock texture.

alt tag

Matching Scores - Below are the sorted results of matching. The top 2 scores are of rock texture.

alt tag

Input Image -- CHECKERED Class

Here is an input image of a checkered texture .

alt tag

Matching Scores - Below are the sorted results of matching. The top 2 scores are of checkered texture.

alt tag

Input Image -- GRASS Class

Here is an input image of a grass texture.

alt tag

Matching Scores - Below are the sorted results of matching. The top 2 scores are of grass texture.

alt tag