An application that connects to Computer Webcam and solve Sudoku in Real Time (Python, OpenCV and Keras)
13
stars
10
forks
source link
readme
Real Time Sudoku Solver
1/ Disclaimer:
I knew almost nothing about Image Processing and Machine Learning when I started this project. Inspired by an awesome Augmented Reality Sudoku Solver made by geaxgx1 (Link below), I decided to make one of my own.
Here is a list of sources I used to build this project:
geaxgx1's Youtube video: https://www.youtube.com/watch?v=QR66rMS_ZfA&t=130s . It contains amazing, abstract instructions on how to build a Real Time Sudoku Solver (Please notice he didn't upload any code)
A lot of ideas (and codes) of this project came from others, as I'm very new to this field. But I still need to put A LOT of work on this project, and I'm very proud of what I have created :)
You will need: Python 3, OpenCV 4, Tensorflow >= 2.1.0 and Keras.
main.py is the entry of the application.
3/ How can you run it?
Just download all files, make sure you have the required installation of Python, OpenCV, Tensorflow and Keras, and run main.py
You don't need to train CNN on your own. I have trained a CNN model and saved the architecture in digitRecoginition.h5
If you want to try training the Convolution Network on your own computer, you will need to download Chars74K Dataset http://www.ee.surrey.ac.uk/CVSSP/demos/chars74k/, takes images 1-9 (We only need 1-9) and put them in folders "1", "2", ..., "9" respectively in the same directory with where you put all my Python files. After that, just run digitRecognition.py