Author:
Pu-Sheng Tsai Pu-Sheng Tsai,Pu-Sheng Tsai Ter-Feng Wu,Ter-Feng Wu Jen-Yang Chen,Jen-Yang Chen Jen-Feng Huang
Abstract
<p>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.</p>
<p> </p>
Publisher
Angle Publishing Co., Ltd.
Subject
Computer Networks and Communications,Software
Cited by
3 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献