Skip to content

R4Lpf/sudokuCameraSolver

Repository files navigation

Sudoku Image Solver

This is the first step toward an attempt to make a sudoku camera solver taking a lot from Murtaza's guide.

Example Sudoku Puzzle:

4

Example Solution:

solved sudoku

1. Train your digit recognition model:

Go to digitTesseract/cnnTraining.py on your prefered IDE and change "epochsVal" to how many eppochs you want to train the model (recommended minimum of 10) and the name of the model when you have to save it (which is the last non-commented line of code), then run the file on spyder if you use spyder or directly from the command promt ("python cnnTraining.py")

2. Upload sudoku images and use the model trained:

If you want to solve different sudokus from the ones on the assets directory, just put some jpg files of sudoku in it and change the path name in sudokuMain.py then change the path of the model when the function "initializePredictionModel" is called to the name you gave your model. Then just run the sudokuMain.py file.

TO DO:

Make it so that points 1 and 2 are as easy as possible in an application or automatically done.

Installation

Before you run the program install the required libraries if you don't have them installed already:

  • Open up your comand promt, cd to the main directory with the requirements.txt file in it, and type:
    • -pip install -r requirements.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages