Experiments in pattern recognition with OpenCV