OCR application based on edge orientation binning