Skip to content

StanJansen/sudoku

Repository files navigation

Stanjan/Sudoku

This project uses logic to generate and solve sudoku's. It also uses OpenCV and OCR to read sudoku's from photo's.

Latest version License PHP dependency Pipeline Coverage

Installation

Composer

$ composer require stanjan/sudoku

OpenCV

This library requires OpenCV to process images before applying OCR on them. Please follow the installation guide on https://github.com/php-opencv/php-opencv.

Information

OCR

The image sent to the OCR implementation gets preprocessed with OpenCV. For example:

OpenCV before image OpenCV after image

Supported OCR implementations:

Dev tools

You can use the Dockerfile in this repository for development.

PHPStan

$ vendor/bin/phpstan analyse

PHP-CS-fixer

Installation

$ composer install --working-dir=tools/php-cs-fixer

Usage

$ tools/php-cs-fixer/vendor/bin/php-cs-fixer fix ./ --dry-run --diff

About

Sudoku generators, solvers and readers.

Resources

License

Stars

Watchers

Forks

Packages

No packages published