remi2257 / sudoku-solver
- среда, 26 августа 2020 г. в 00:24:33
Python
Smart solution to solve sudoku in VR
Hi, my name is Rémi LUX. I end my final year of Computer Vision Degree in Grenoble INP - Phelma, and I'm now engineer at Niryo.
Welcome to my project
My algorithm is able to detect and to directly solve sudokus in VR
For a single image process, my algorithm is using working as following :
Firstly, the algorithm have to find where the grids are !
The pipeline is :
Once grids are extracted, for each grid we do :
When user chose to use video as input, the algorithm will act quite differently :
The best way to use my algorithm is to firstly clone the git
repo where you want to.
Then, open a terminal & go in the repository
cd /path/to/the/folder/
You can see the options by typing
python3 sudoku_solver_main.py -h
You will need some libraries before running it
To Install : pip install <library_name>
Take your own picture/video of your process target and use the command
python3 sudoku_solver_main.py -i path/to/your/file
You also want to add -s
to save the output result
In both cases, the result will be display on your monitor during processing
If you want to use your webcam, you can chose the profile n°2
by adding -p 2
to your command. Nevertheless, the algorithm
is too long to give a real-time pleasant experience (mainly cause
of the Hough Transform)
The user can use his own Keras model to identify digits.
For that use the parameter -mp path/to/your/model
Version | Source | Algorithm Output |
---|---|---|
1.5 | Video | ![]() |
1.3 | ![]() |
![]() |
1.2 | ![]() |
![]() |
1.1 | ![]() |
![]() |
1.0 | ![]() |
![]() |
I trained mine personally with on a dataset of 10k numeric digits with data augmentation. It gave me a precision of 99.5+ %