Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)
Image Alt Text

`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`
Image Alt Text

# 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