Tesseract.js is a javascript library that gets words in [almost any language](./docs/tesseract_lang_list.md) out of images. ([Demo](http://tesseract.projectnaptha.com/))
Tesseract.js works with script tags, webpack/browserify, and node. [After you install it](#installation), using it is as simple as
Tesseract.js works with script tags, [webpack](https://webpack.js.org/)/[browserify](http://browserify.org/), and [node](nodejs.org). [After you install it](#installation), using it is as simple as
@ -30,17 +32,18 @@ You can simply include Tesseract.js with a cdn like this:
@@ -30,17 +32,18 @@ You can simply include Tesseract.js with a cdn like this:
@ -115,7 +117,7 @@ Figures out what script (e.g. 'Latin', 'Chinese') the words in image are writte
@@ -115,7 +117,7 @@ Figures out what script (e.g. 'Latin', 'Chinese') the words in image are writte
- `image` is any [ImageLike](#imagelike) object.
Returns a [TesseractJob](#tesseractjob) whose `then`, `progress`, `error` and `finally` methods can be used to act on the result of the script.
Returns a [TesseractJob](#tesseractjob) whose `then`, `progress`, `catch` and `finally` methods can be used to act on the result of the script.
```javascript
@ -267,7 +269,7 @@ To run a development copy of tesseract.js, first clone this repo.
@@ -267,7 +269,7 @@ To run a development copy of tesseract.js, first clone this repo.
@ -281,7 +283,7 @@ Then, cd in to the folder, `npm install`, and `npm start`
@@ -281,7 +283,7 @@ Then, cd in to the folder, `npm install`, and `npm start`
```
Then open `http://localhost:7355/examples/file-input/demo.html` in your favorite browser. The devServer automatically rebuilds tesseract.js and tesseract.worker.js when you change files in the src folder.
Then open `http://localhost:7355/examples/file-input/demo.html` in your favorite browser. The devServer automatically rebuilds `tesseract.js` and `tesseract.worker.js` when you change files in the src folder.
### Building Static Files
After you've cloned the repo and run `npm install` as described in the [Development Section](#development), you can build static library files in the dist folder with