/texture-matching

Texture Matching using Local Binary Patterns (LBP)

Primary LanguagePython

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