OCR algorithm, character recognition algorithm that is specifically effective for image processing algorithms for character recognition and detection. OCR algorithm is divided into two parts, first, to train a sufficient sample (8), to generate a standard character library for use character recognition; again, the call has been producing standard character library, treat character recognition test, determines the character test compliance with standards. OCR algorithm, generally used in the identification of important elements, such as BGA, QFP, SOP and so on.