You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* This app was built to allow users to solve their sudokus using a computer.
4
+
* There is a Flask based webserver `web_interface.py` which when run gives a web interface to upload an image of a sudoku to be solved. The response is a solved sudoku.
5
+
* There is a file `full_stack_http.py` which needs to be run alongside the webserver for the full app to run. This is in charge of opening multiple process channels to process the images that are sent to the webserver.
6
+
* The app relies of Pytesseract to identify the characters in the sudoku image.
7
+
8
+
# Operation
9
+
10
+
* The image is first stripped of color.
11
+
* It is then cropped to select the section of the sudoku. NOTE: This section is not dependent on the sudoku but has been hardcoded.
12
+
* The resulting image is passed to `Pytesseract` to extract the characters and their position.
13
+
* Using the characters and their position the grid size is determined.
14
+
* The appropriate grid is created and filled with the discovered characters.
15
+
* The grid is then solved with an algorithm contained in `sudoku.py`.
16
+
* A snapshot of the solved grid is then created and sent back to the user.
17
+
* The resultant snapshot is rendered on the browser page.
18
+
19
+
# To Run
20
+
21
+
* First install `Pytesseract`
22
+
* Install `Flask`
23
+
* Then run the `full_stack_http.py` file.
24
+
* Then run the `web_interface.py` file.
25
+
* Go to the browser and load the URL provided in the previous step.
0 commit comments