Giter VIP home page Giter VIP logo

sudoku-scanner-and-solver's Introduction

Sudoku Scanner And Solver

Introduction

This is a Sudoku Puzzle Solver application which is built in Qt Framework, PyGame using Python language. It provides an option to either identify the puzzle input by scanning a well cropped puzzle image or by entering the values manually. After automatic recognition of values, the program asks the user to verify the detected numbers and then continue with the solution.

Contents

Demo

Sudoku Demo

Installation

  • Install 3.8 from here
  • Install git from here
  • Run git clone https://github.com/DiAnant/Sudoku_Scanner_And_Solver.git
  • Run pip install -r requirements.txt

Usage

  • Execute main.py
  • Upload an image or input the values manually.
  • Press enter to solve the board.
  • Press 'space' to reset the board.
  • Click the particular square in the sudoku grid and press a number key to change its value to that number.

Working

  • The app interface is built on PyQt5 (Qt) Framework and the grid puzzle is built using PyGame.
  • Tensorflow is used for detection of numbers from the input image. Weights trained on a Deep CNN on MNIST database with very high test accuracies are already prepared.
  • A standard backtracking procedure is used to solve the puzzle once the detected numbers are confirmed by the user.

Scope For Improvement

  • The current application requires the input image to be perfectly well cropped. An incorrectly cropped or straightened image will result in mis-detection of the numbers.
  • A much faster Numpy based Inference algorithm can be developed instead of using tensorflow for detection purpose.
  • Instead of using a standard backtracking algorithm, a faster sudoku solving algorithm developed by Peter Norvig can be used.

sudoku-scanner-and-solver's People

Contributors

ayushdiagarwal avatar thismonkeysgonetoheaven avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

richlysakowski

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.