3 ms·
It's annoying to find out the actual code that does the OCR is not in this repo after looking through the entire thing. It's just a bunch of scheduling and work
by soheil 4y ago
It's annoying to find out the actual code that does the OCR is not in this repo after looking through the entire thing. It's just a bunch of scheduling and worker logic and for some reason the JS is written twice once for the browser and once for Node.
The actual code that does the OCR is wraped and included via this package [0] which just wraps the original Tesseract in C++ [1] using wasm. Shameful title.
[0] https://github.com/naptha/tesseract.js-core https://github.com/naptha/tesseract.js-core
[1] https://github.com/jeromewu/tesseract https://github.com/jeromewu/tesseract