https://github.com/developer239/tesseract-nodejs
Nodejs bindings to Tesseract 4.
https://github.com/developer239/tesseract-nodejs
Last synced: 5 months ago
JSON representation
Nodejs bindings to Tesseract 4.
- Host: GitHub
- URL: https://github.com/developer239/tesseract-nodejs
- Owner: developer239
- License: mit
- Created: 2021-11-21T11:35:02.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-21T15:56:33.000Z (about 4 years ago)
- Last Synced: 2025-02-06T01:02:29.099Z (12 months ago)
- Language: C++
- Homepage:
- Size: 235 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Tesseract Node.js
[](https://www.npmjs.com/package/tesseract-nodejs "View this project on npm")
Node bindings for Tesseract OCR library. Currently, only supports Mac.
## Dependencies
In order to make this library work you have to install Tesseract on your machine. I highly recommend to just use `brew`. Otherwise, you can look [here and follow official installation instructions](https://github.com/tesseract-ocr/tesseract#installing-tesseract).
```
brew install tesseract
```
All you have to do after that is to install this library with `yarn` or `npm`.
```
yarn add tesseract-nodejs
```
## Example
```js
import { Tesseract } from 'tesseract-nodejs'
const tesseract = new Tesseract()
const outputText = tesseract.read(__dirname + '/example.png')
console.log(`
R E S U L T:
${outputText}
`)
// R E S U L T:
//
// { you will find Tesseract output here }
```
## TODO
- [ ] Add support for more functions
- [ ] Add support for other systems (not likely to happen any time soon)