Simple handwritten symbol recognition in OpenCV