Example of solving OCR problem using potencial method