Python application to solve Sudoku puzzle and overlays solution on to real image in real-time.
This project is solely inspired from AnhMinhTran's Youtube Video.
In general Sudoku is solved using Backtracking approch, which is a bruteforce approch.
Here we are using Greedy Best First Search approch (An optimised version of Naive Back Tracking method) ie; Chooses a cell with least number of possibilities to search next.
Step-1: Install all required libraries in requirements.txt
or directly run pip install -r requirements.txt
Step-2: Directly run all cells of Sudoku testing.ipynb
file. It does all the imports by itself.
Step-3: Nothing else, just get your Sudoku puzzle in front of your camera and solutions will be relayed over their respective positions.
Step-4: To stop the camera, click 'Q' on keyboard.
I had trained a custom model for Number prediction. You can use either the existing one or a model of your own.
For solving sudoku: https://norvig.com/sudoku.html
Tech With Tim: https://www.youtube.com/watch?v=lK4N8E6uNr4
Sudoku extraction from image: https://medium.com/@neshpatel/solving-sudoku-part-ii-9a7019d196a2 (with python code)
Solving Sudoku Part1: https://medium.com/@neshpatel/solving-sudoku-part-i-7c4bb3097aa7
Solving Sudoku Part2: https://medium.com/@neshpatel/solving-sudoku-part-ii-9a7019d196a2
Code Reference:
- https://github.com/tahaemara/real-time-sudoku-solver
- https://aakashjhawar.medium.com/sudoku-solver-using-opencv-and-dl-part-2-bbe0e6ac87c5
Taha Emara: https://www.youtube.com/watch?v=Q5F8FteU3OY
🤝 LinkedIn: Lets Connect