A difficult algorithm issue about OCR