refactors OCRTesseract interface

please, move it to .cpp file.