Giter Site home page Giter Site logo

aabidpatel / sudoku-solver-with-opencv Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6.35 MB

This Sudoku Solver uses a camera to search for a 9 by 9 Sudoku puzzle in the frame by extracting the matrix. The matrix is then solved using the Backtracking algorithm. The solution is then overlayed on the original frame.

Python 100.00%
opencv python backtracking-algorithm sudoku computer-vision keras tensorflow

sudoku-solver-with-opencv's Introduction

Sudoku Solver using OpenCV Python

This Sudoku Solver uses a camera to search for a 9 by 9 Sudoku puzzle in the frame by extracting the matrix. It extracts the sudoku matrix by preprocessing the image and finding the largest contour of the frame. To preprocess the image, the image converted to a binary color space then a thresholding vlaue is applied to remove the unwanted noise. Then it classifies the digits using the keras model to identify which cell of the matrix is empty or filled and assigns the number classified to the corrosponding cell.

The matrix is then solved using Backtracking algorithm. Backtracking is an algorithmic-technique for solving problems recursively by trying to build a solution incrementally, one piece at a time, removing those solutions that fail to satisfy the constraints of the problem at any point of time. The solution is then overlayed on the original frame.

Sudoku-Github

sudoku-solver-with-opencv's People

Contributors

aabidpatel 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.