Show HN: Tesseract.js – Pure JavaScript OCR for 60 Languages

README.md

Tesseract.js is a javascript library that gets words in almost any language out of images. (Demo)

Tesseract.js works with script tags, webpack/browserify, and node. After you install it, using it is as simple as

Tesseract.recognize(myImage)
.progress(function (p) { console.log(‘progress’, p) })
.then(function (result) { console.log(‘result’, result) })

Check out the docs for a full treatment of the API.

Tesseract.js works with a tag via local copy or cdn, with webpack and browserify via npm, and on node via npm. Check out the docs for a full treatment of the API.

You can simply include Tesseract.js with a cdn like this:

After including your scripts, the Tesseract variable should be defined! You can head to the docs for a full treatment of the API.

npm

First:

> npm install tesseract.js –save

Then

var Tesseract = require(‘tesseract.js’)

or

import Tesseract from ‘tesseract.js’

You can head to the docs for a full treatment of the API.

Tesseract.recognize(image: ImageLike[, options]) -> TesseractJob

Figures out what


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/iXMYFxqWEiM/tesseract.js

Original article

Comments are closed.

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑

%d bloggers like this: