- Go 100%
| jlpt | ||
| jmdict | ||
| go.mod | ||
| go.sum | ||
| main.go | ||
| README.md | ||
Japanese OCR And Dictionary
This is a very basic OCR and dictionary for the Japanese language, that allows quick text extraction from a screenshot or screen region, and lookup of word meanings and usage.
This is a very bare-bones project meant for personal use. I still haven't nailed down the text extraction and splitting. As such, the app is not very reliable.
Acknowledgements
This project uses the following sources and tools:
Data Sources
JMdict is a great dictionary used for word meaning lookup.
Jonathan Waller‘s JLPT Resources contains information about words and kanjis grouped by JLPT levels.
Dependencies
Fyne is a good library for making native desktop applications.
TinySegmenter.go is a simple library for splitting sentences into words.
Lithammer's Fuzzy Search is good library for fuzzy searching text, which allows searching the dictionary.
Tools
slurp is used for selecting a screen region.
grim is used for capturing a screenshot of the selected region.
Tesseract is used for extracting text from the captured image.
Requirements
- Wayland desktop
slurpfor screen region selectiongrimfor screen capturetesseractfor text extraction from image