This project utilizes OpenCV and Keras followed by a backtracking algorithm to solve various Sudoku puzzles.
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/Ayushma99/Suduko_Solver_Using_AI.git
-
Navigate to the project directory:
cd Suduko_Solver_Using_AI
-
Install the required dependencies. You can use
pip
to install them from therequirements.txt
file:pip install -r requirements.txt
-
Run Jupyter Notebook to explore the project:
notebooks\final.ipynb
To understand how the Sudoku solver works, check out the following files in notebooks folder:
- main.ipynb: This notebook demonstrates the implementation of the solver and how it works.
- modelmaking.ipynb: Here, you can find the process of training the model used for Sudoku solving.
I have created custom datasets from the given suduko images to train the numbers. This datasets are saved in images
folder Explore the dataset creation process in the notebooks/main.ipynb
file.
For the results of the Sudoku solver in action, refer to the image below:
Feel free to explore the code and experiment with solving Sudoku puzzles using AI!