Simple and modern Node.js wrapper implementation for Tesseract OCR CLI.
import recognize from 'tesseractocr' const text = await recognize('/path/to/image.png') console.log('Yay! Text recognized:', text)
Note: Despite that it's encouraged to use the more modern promise-based API, the good old callbacks are still supported.
The overall API documentation can be found here
There is a hard dependency on the Tesseract project. You can find installation instructions for various platforms on the project site. For Homebrew users, the installation is quick and easy.
brew install tesseract
npm install tesseractocr
Clone the repo,
npm install and then
npm test or
npm run benchmarks.
The project's changelog is available here