https://github.com/rattananen/sudoku-resolve
https://github.com/rattananen/sudoku-resolve
cpp ocr opencv sudoku tesseract-ocr
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rattananen/sudoku-resolve
- Owner: rattananen
- License: mit
- Created: 2025-05-29T08:28:55.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-17T03:44:57.000Z (about 1 year ago)
- Last Synced: 2025-06-19T17:52:54.283Z (about 1 year ago)
- Topics: cpp, ocr, opencv, sudoku, tesseract-ocr
- Language: C++
- Homepage:
- Size: 1.23 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Usages
### Interactive mode
```bash
sudoku_resolve --interactive
```
### Input as text file
```bash
sudoku_resolve test_in.txt
```
### Input/output as text file
```bash
sudoku_resolve test_in.txt output.txt
```
## Usages for input as iamge (OCR)
### Examaple 1
```bash
sudoku_ocr test.png
```
- This command will looking for `eng.traineddata` file (tesseract trained models) in current folder if you don't have `TESSDATA_PREFIX` (path to Tesseract trained models folder) in enviroment vaiable.
- You can download trained models from https://github.com/tesseract-ocr/tessdata_best or what you prefer.
### Examaple 2
```bash
sudoku_ocr test.png /path/to/tesseract-trained-models-folder
```
- You can specific Tesseract trained models folder by this one.
## Compiling
For some resone `sudoku_ocr` can't compile to static (single file) yet. but you ccould build ocr version with Cmake commad.
```bash
cmake --build --preset linux-vcpkg-release
```
or
```bash
cmake --build --preset winx64vcpkg-release
```
It's require [vcpkg](https://vcpkg.io/en/) for main package management.
It would better if you modern IDE eg. Vscode, Clion, Vs 2022, ... .