From 7fb328e3e634c8c08782f9fd8ba0abf6ea26f9bf Mon Sep 17 00:00:00 2001 From: Rohit Jha Date: Sat, 15 Oct 2016 00:38:46 -0700 Subject: [PATCH] Fixes to README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 08a260f..89a9779 100644 --- a/README.md +++ b/README.md @@ -2,14 +2,14 @@ [![npm version](https://badge.fury.io/js/tesseract.js.svg)](https://badge.fury.io/js/tesseract.js) -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 is a JavaScript library that gets words in [almost any language](./docs/tesseract_lang_list.md) out of images. ([Demo](http://tesseract.projectnaptha.com/)) [![fancy demo gif](./demo.gif "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/Browserify, and Node.js. [After you install it](#installation), using it is as simple as ```javascript Tesseract.recognize(myImage) .progress(function (p) { console.log('progress', p) }) @@ -20,11 +20,11 @@ Tesseract.recognize(myImage) # Installation -Tesseract.js works with a ` ``` @@ -36,7 +36,7 @@ First: ```shell > npm install tesseract.js --save ``` -> Note: Tesseract.js currently requires node v6.8.0 or greater. +> Note: Tesseract.js currently requires Node.js v6.8.0 or higher. Then @@ -141,7 +141,7 @@ On a browser, an image can be: -In NodeJS, an image can be +In Node.js, an image can be - a path to a local image - a `Buffer` instance containing a `PNG` or `JPEG` image - a `ImageData` instance (an object containing `width`, `height` and `data` properties) @@ -256,7 +256,7 @@ A string specifying the location of the [tesseract.js-core library](https://gith A string specifying the location of the [tesseract.worker.js](./dist/tesseract.worker.js) file. Set this string before calling `Tesseract.recognize` and `Tesseract.detect` if you want Tesseract.js to use a different file. ### langPath -A string specifying the location of the tesseract language files, with default value 'https://cdn.rawgit.com/naptha/tessdata/gh-pages/3.02/'. Language file urls are calculated according to the formula `langPath + langCode + '.traineddata.gz'`. Set this string before calling `Tesseract.recognize` and `Tesseract.detect` if you want Tesseract.js to use different language files. +A string specifying the location of the tesseract language files, with default value 'https://cdn.rawgit.com/naptha/tessdata/gh-pages/3.02/'. Language file URLs are calculated according to the formula `langPath + langCode + '.traineddata.gz'`. Set this string before calling `Tesseract.recognize` and `Tesseract.detect` if you want Tesseract.js to use different language files. ## Contributing