This project uses logic to generate and solve sudoku's. It also uses OpenCV and OCR to read sudoku's from photo's.
$ composer require stanjan/sudoku
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.
The image sent to the OCR implementation gets preprocessed with OpenCV. For example:
Supported OCR implementations:
You can use the Dockerfile in this repository for development.
$ vendor/bin/phpstan analyse
$ composer install --working-dir=tools/php-cs-fixer
$ tools/php-cs-fixer/vendor/bin/php-cs-fixer fix ./ --dry-run --diff