Skip to content

This is an android app which is build using opencv and Auto ML. This project uses Opencv to detect the sudoku from the camera and uses AutoML to recognise digits from the image.

Notifications You must be signed in to change notification settings

dreamerchandra/sudokusolver

Repository files navigation

sudokusolver

Point this app towards sudoku and booms it will get solved!!

About this project

This is an android app which is build using opencv and Auto ML. THis project uses Opencv to detect the sudoku from the camera and uses AutoML to recognize digits from the image.
This project is an wrapper on prajwalkr sudoku solving algorithm using python. The same algorithm is applied on android whereas his project is on python.

Algorithm

  1. Preprocessing of image -Grayscale, Thresholding
  2. Getting all the rectangle
    1. Canny edge detection is applied followed by Gaussian Blur to remove noise
    2. Contour edge detection is applied to get the rectangles in the image
  3. Highlighting the sudoku
    1. Sorting the rectangles based on area in descending order of its contour area
    2. Calculate the distance between the corner for top 5 sorted rectangle in order to find the square
    3. Highlight that contour. Most probability it will be the sudoku
  4. Once the user feels sudoku is highlighted properly. Scan button can be pressed.
  5. Wrap perspective transformation is applied on the sudoku
  6. On clicking on the extract button sudoku is sliced evenly to get the individual cells
  7. AutoML is applied on the individual cells to get the corresponding numbers in the cells
  8. Currently backtracking is used to solve sudoku.

Working

Sudoku   solver
Click on the image to play the video

About

This is an android app which is build using opencv and Auto ML. This project uses Opencv to detect the sudoku from the camera and uses AutoML to recognise digits from the image.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages