Real-time Recognition of Handwritten Numbers: A LeNet-5 Based Approach and Its Improvements
Abstract
The main idea of this project is to use edge detection to construct the shapes of each number and segregate each contour into separate images in order to isolate the numbers. Then feeding the images through a neuro network to perform recognition. Finally, the information is printed onto a video showing both the paper and boxes, boxing the individual numbers. The results achieved are fairly accurate, however needs improvements on the accuracy of the number seven. The goal of this project is to enable the real-time recognition of various handwritten digits presented on a physical paper medium. This method places no restrictions on the colors of the paper or pen, as long as the digits remain legible. The dataset employed originates from the MNIST collection, and the model architecture used closely mirrors that of LeNet-5. The project is categorized into three main sections: model development, image parameter assessment, and implementation for real-time video analysis.
References
- Ng, A. (n.d.). Neural networks and deep learning [Course]. Coursera. https://www.coursera.org/learn/neural-networks-deep-learning?specialization=deep-learning
- TensorFlow. (n.d.). TensorFlow: An end-to-end open-source machine learning platform. TensorFlow. https://www.tensorflow.org/
- LeCun, Y., Cortes, C., & Burges, C. (n.d.). The MNIST database of handwritten digits.
- González, R. C. (2008). Digital image processing (3rd ed.). Pearson.
- Xu, M. F. (n.d.). Neural networks part 3: Convolutional neural networks (CNN). Michael F. Xu.
- Ang, L., Zhou, Y., Shi, J., & Yang, M. (2022). Convolutional neural network-based object detection for remote sensing images. Journal of Sensors, 2022, Article 1636203.
- Wang, X. (n.d.). SEU_LaneDetect [Source code]. GitHub. https://github.com/xlwang123/SEU_LaneDetect
- Rosebrock, A. (2016, March 28). Measuring size of objects in an image with OpenCV. PyImageSearch.
- OpenCV. (n.d.). OpenCV documentation (Version 4.x). OpenCV. https://docs.opencv.org/4.x/index.html
- Canny, J. (1986). A computational approach to edge detection. Pattern Recognition, 19(6), 679-698. https://doi.org/10.1016/S0031-3203(00)00023-6