cpp code written in OPENCV for shape and character recognition