1 | initial version |
The classical way to detect/classify textures would be the usage of gabor-filters together with a classifier. However, since you ask specifically about OpenCV: You could train a cascade-classifier with LBPs since LBPs are also often used for texture detection/recognition this would be worth trying. Due to the cascade of weak classifiers this should be definitely fast enough for real-time (of course the training step is not real time and takes several hours).