Skip to content

cnsuhao/sudoku-vision

 
 

Repository files navigation

sudoku-vision

sudoku-vision is an augmented reality application that displays the answer to sudoku puzzles when you hold them up to your webcam.

Each frame from the webcam undergoes a number of processing steps to extract the sudoku grid.

If the grid is successfully located, it is extracted and processed further to verify that it is a sudoku puzzle by looking for 81 smaller squares.

In the workflow for creating sample optical character recognition (OCR) data, each digit is highlighted in order as the user types in their identities. In the solving workflow, the program identifies each digit in lexicographical order. The puzzle is then solved using backtracking search.

The correct digits for the blanks are drawn on an overlay frame, which is transformed to fit the largest rectangle that was discovered in the first step. The solution is then overlaid on the frame. The last example shows the current level of skew tolerance.

Requirements

Running the application

Compile:

cmake . && make main

Run in solve mode:

./main

Run using sample image:

./main sample

Run OCR sample data creator:

./main train

Press ESC to quit the application.

Future work

License

This project is licensed under terms of the MIT License.

About

Augmented reality sudoku solver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 39.2%
  • Makefile 28.5%
  • C 18.3%
  • CMake 14.0%