The paper presents a novel preprocessing approach for numeral recognition that effectively reduces image size by eliminating redundant information, improving recognition rates and reducing computation time. It employs k-nearest neighbors and multilayer perceptron techniques for classification after preprocessing, which includes binarization, cropping, normalization, and a new windowing stage. Experimental results indicate significant enhancements in recognition accuracy and processing efficiency, with the proposed method achieving a maximum recognition rate of 87.9% when applying windowing.