Integrating of Image Processing and Number Recognition in Sudoku Puzzle Cards Digitation

Pu-Sheng Tsai,
Ter-Feng Wu,
Jen-Yang Chen,
Jen-Feng Huang,

Abstract


The aim of Sudoku puzzle is to fill in the blank cells in a square matrix consisting of nine 3x3 blocks with the numbers 1-9 in a way that no number appears more than once in any row, column, or block. We combined image processing, a convolutional neural network (CNN), and a Sudoku game algorithm to automatically place the numbers 1-9 in the blank cells of a Sudoku square matrix. An image of the Sudoku square matrix is first captured using a camera, and then the vertical lines, horizontal lines, and outer frame of the Sudoku square matrix are detected using Hough transform (HT). Based on the OpenCV module, we proposed an image processing algorithm that captures the numbers in the image and calculates the location coordinates of the numbers in the image. We trained the CNN using the MNIST handwritten digit dataset to recognize the numbers in the Sudoku square matrix. Finally, we used the Python programming language to design a Sudoku puzzle backtrace algorithm that automatically deduces and fills in the blank cells in the square matrix. This study provides further understanding of the critical operating principles of CNNs and lays down a foundation for future research.

Keywords


Sudoku, Convolutional neural network, Hough transform, MNIST dataset, OpenCV

Citation Format:
Pu-Sheng Tsai, Ter-Feng Wu, Jen-Yang Chen, Jen-Feng Huang, "Integrating of Image Processing and Number Recognition in Sudoku Puzzle Cards Digitation," Journal of Internet Technology, vol. 23, no. 7 , pp. 1573-1584, Dec. 2022.

Full Text:

PDF

Refbacks

  • There are currently no refbacks.





Published by Executive Committee, Taiwan Academic Network, Ministry of Education, Taipei, Taiwan, R.O.C
JIT Editorial Office, Office of Library and Information Services, National Dong Hwa University
No. 1, Sec. 2, Da Hsueh Rd., Shoufeng, Hualien 974301, Taiwan, R.O.C.
Tel: +886-3-931-7314  E-mail: jit.editorial@gmail.com