Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aquajo/ocr-word-grid-solver
A simple cli for solving grid puzzles using ocr. It can help you find specific words in the grid or identify all possible words based on dictionaries.
https://github.com/aquajo/ocr-word-grid-solver
Last synced: 6 days ago
JSON representation
A simple cli for solving grid puzzles using ocr. It can help you find specific words in the grid or identify all possible words based on dictionaries.
- Host: GitHub
- URL: https://github.com/aquajo/ocr-word-grid-solver
- Owner: AquaJo
- Created: 2023-04-16T22:24:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-02T00:31:21.000Z (4 months ago)
- Last Synced: 2024-08-02T01:46:47.044Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.95 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# What am I?
This tool is designed for analyzing grid-search puzzles, even when the words within are unkown.
It thoroughly assesses diagonals, rows and columns in both directions.
The process combines the capabilities of tesseract.js and ocrad.js to weigh results, ultimately yielding the most accurate outcomes.
# Demo & Tutorial
https://github.com/AquaJo/ocr-word-grid-solver/assets/84229101/1a2abc25-f55b-4d5f-b846-fd58e71c10a3## in text form
After `npm install`, do `npm start` and follow the instructions:`Do you want to use ocr? (y/n) (n --> no image, type grid / no option for visualization):` `y`
`Name the relative path (e.g relative to index.js) to the grid puzzle image:` `./puzzles/demo.jpg`
(some background noise shouldn't bother)`Do you want to mark specific words in the grid now? (y/n):` `n`
`Do you want to search for words from the dictionaries in the grid now? (y/n):` `y`
```
['BuTTERFLY', 'RAiNBow', 'FLowERS', 'BLoSSoM', 'BuTTER', 'FLowER', 'LowER', 'SUNNY', 'RAiN', ...]
````Do you want to mark words in the grid now? (y/n):` `y`
`Name the words you want to mark in the grid seperated by a comma (,):` `butterfly, rainbow`# Credits
language- and ocr-libs:\
https://github.com/hathibelagal/German-English-JSON-Dictionary
https://github.com/dwyl/english-words
https://gist.github.com/MarvinJWendt/2f4f4154b8ae218600eb091a5706b5f4
https://github.com/antimatter15/ocrad.js