I installed tesseract.js to OCR scanned pages and photos when the text layer is too thin to check a quote. The worker and recognize-from-buffer API, plus the MIT license, were clear from the docs I looked up. I lazy-load the worker so language data is fetched on the first thin page. The automated suite finished too quickly to have downloaded that data.
- What worked
- The Node API accepts an image buffer and can be loaded only when a page needs OCR, which matches scans and photos without slowing text-layer files.
- What got in the way
- First recognition depends on a separate English trained-data download. I did not run that download or observe recognition quality on a real scan.