tes
tesseractocr
npm i tesseractocr
tes

tesseractocr

Node.js wrapper for Tesseract OCR CLI.

by Schwarzkopf Balázs

2.0.3 (see all)License:MITTypeScript:Not FoundCategories:Node.js OCR
npm i tesseractocr
Readme

view on npm downloads per month node version build status test coverage license

Tesseract OCR for Node.js

Simple and modern Node.js wrapper implementation for Tesseract OCR CLI.

Features & Advantages

  • focus on high performance
  • both promise and callback APIs are supported
  • full test coverage
  • void of sync operations
  • no temp files are used

Usage

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.

API docs

The overall API documentation can be found here

Installation

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

You can then go about installing the Node.js package to expose the JavaScript API:

npm install tesseractocr

Tests and benchmarks

Clone the repo, npm install and then npm test or npm run benchmarks.

Changelog

The project's changelog is available here

License

MIT

Downloads/wk

3.9K

GitHub Stars

26

LAST COMMIT

1mo ago

MAINTAINERS

1

CONTRIBUTORS

3

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
2.0.3
latest
1mo ago
No tutorials found
Add a tutorial