sudosolv

command module
v0.0.0-...-7ce53e0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2022 License: MIT Imports: 1 Imported by: 0

README

sudosolv

Sudosolv will take a picture of a sudoku and will crop the sudoku from the image and decode this into plaintext.

To use this, you will need to train a number recognition classifier first. There are two datasets possible, either the mnist dataset, or a generated dataset based on available fonts.

Prepare the fonts dataset:

cd dataset/fonts
sh download.sh
sh create.sh

Prepare the mnist dataset:

cd dataset/mnist
sh download.sh

Train the network:

make train

Test with some sudoku image:

go run main.go decode -w trained.bin -f my_sudoku_image.jpg
go run main.go decode -w trained.bin -f my_sudoku_image.jpg --display

Or run the webserver and play around on http://localhost:8080:

go run main.go server -w trained.bin 

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
internal
numocr/dataset/mnist
package mnist handles the mnist data set package mnist handles the mnist data set
package mnist handles the mnist data set package mnist handles the mnist data set

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL