Introduction - If you have any usage issues, please Google them yourself
Is complete the simple Bayesian classifier, based on openCV to do. First production of a random 2-dimensional feature vector, and then to use Bayesian classification and reality.