GithubHelp home page GithubHelp logo

matlab-deep-learning / deep-sudoku-solver Goto Github PK

View Code? Open in Web Editor NEW
22.0 6.0 3.0 4.87 MB

Find and solve sudoku puzzles in images using deep learning and computer vision

License: Other

MATLAB 100.00%
deep-learning computer-vision matlab sudoku-puzzle matlab-deep-learning

deep-sudoku-solver's People

Contributors

justinpinkney avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

deep-sudoku-solver's Issues

Improve network architectures

The current network architectures probably be improved by:

  • Using a more modern resnet based architecture for the number classification network
  • Using a U-net based architecture for the segmentation network
  • Tuning training parameters

Sensible error when the image does not contain a sudoku.

If the image does not contain a sudoku at all, the code:

[solution, outputs] = solver.process(exampleImage);

errors as follows:

Index in position 1 is invalid. Array indices must be positive integers or logical values.

Error in tabular/subsrefBraces (line 35)
    b = b(rowIndices,:); % without using reshape, may not have one

Error in tabular/numArgumentsFromSubscript (line 21)
        x = t.subsrefBraces(s(1));

Error in sudoku.findPrimaryRegion (line 19)
    filledRegion = imerode(regions{end, 3}{1}, ones(3));

Error in sudoku.PuzzleSolver/findPuzzle (line 82)
            mask = sudoku.findPrimaryRegion(thresholdedImage);

Error in sudoku.PuzzleSolver/process (line 62)
            [mask, findSteps] = obj.findPuzzle(im);

It would be great if we could make it error in a more sensible way. So far, in my own repo I added the following in src/sudoku/+sudoku/findPrimaryRegions

if isempty(regions)
     error('A sudoku could not be found on the image')
end

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.