An efficient pattern recognition technology is applied to recognize the number character of lottery and invoice is proposed in this paper. There are some Arabic numerals of lottery or invoice tickets easy to be confused because of unclear printing. In this algorithm, an image processing and pattern recognition technology is applied. The advantage of this algorithm includes that the region of interest for images can be captured automatically and the accuracy of recognition is remarkable. In order to compare the Arabic numerals of invoice with template in database, the optical character recognition technology is proposed. According to compare the normalized character with template in database, the algorithm can recognize the correct Arabic numerals of lottery or invoice tickets. Based on experimental results, the proposed algorithm in this paper is efficient and has high accuracy.