Sudoku puzzle solver in Python using OpenCV, Pytorch and Numpy
Sudoku image solver program using Open CV, Pytorch and Numpy
1) The picture given as input is resized, converted to grayscale and filtered using Opencv.
2) Main grid found using contour detection
3) Sudoku grid is transformed via perspective transformation
4) Each cell of the sudoku is extracted
5) OCR is done to get the digit of each cell
6) The reconstructed Sudoku is solved using backtracking
1) Training of a Convolutional Neural network for ORC using QMNIST dataset
2) A set of multiple sudoku puzzles for examples
run python launcher.py [path] [debug]
path: optional, path of the picture containing the sudoku. If blank, uses the default picture displayed below
debug: optional, boolean to set to True if you want to see some plots