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