Giter Club home page Giter Club logo

sudokusolvercv's Introduction

End to End Sudoku solver project

Objective: Utilizes Convolutional Neural Networks (CNN) to extract the sudoku grid from an input image, predicts the digits using image recognition, employs backtracking to solve the sudoku puzzle, and finally displays the solved sudoku using OpenCV.

End product: A Streamlit application that accepts a sudoku image as input, processes it to display both the original unsolved sudoku (input image) and the solved sudoku image.

Stream lit drop box UI for dropping the input sudoku images.

Screenshot 2024-06-02 113626

Displaying original Unsolved and Solved sudoku images.

sudoku_app-3

Methodology:

Step - 1 : Preprocessing of the input image [converting to binary image, warping, grid detection, horizontal lines detection, vertical lines detection, cell extraction, digit prediction]

Step - 2 : Storing the predicted digits into a matrix form and feeding to the Back tracking algorithm to solve the sudoku.

Step - 3 : Printing the solved sudoku on to the input image fed.

Model configuration for digit recognition:

Data set source : Chars74k dataset

Data set size : 633 images belonging to 1 to 9 digits classes

Model : CNN

Model parameters : 17214154 ~17M

Model size : ~200 MB

activation function : [relu , softmax]

input size : 150 x 150

Optimizer : adam

epochs : 50

accuracy : ~99.5

sudokusolvercv's People

Contributors

kavetishivanjali avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.