demo code for OpenCV based OCR