Optical Keyboard using OpenCV in cpp