Related blog post explaining the code - Click Here
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
Let's check out the results.
Input Image -- ROCK Class
Here is an input image of a rock texture.
Matching Scores - Below are the sorted results of matching. The top 2 scores are of rock texture.
Input Image -- CHECKERED Class
Here is an input image of a checkered texture .
Matching Scores - Below are the sorted results of matching. The top 2 scores are of checkered texture.
Input Image -- GRASS Class
Here is an input image of a grass texture.
Matching Scores - Below are the sorted results of matching. The top 2 scores are of grass texture.