Permalink
Browse files

fork

  • Loading branch information...
1 parent bc17d25 commit 9c0e2d90bf6d4bebcd7ef7eb58afed4bc691c11e @joscha joscha committed Aug 29, 2012
Showing with 16 additions and 14 deletions.
  1. +8 −7 README.md
  2. 0 lib/{tesseract.js → nodecr.js}
  3. +8 −7 package.json
View
@@ -3,20 +3,21 @@
A simple wrapper for the Tesseract OCR package for node.js
## Installation
-npm install node-tesseract
+npm install nodecr
## Versions
+* **0.0.4**: Changed name to nodecr and published node module (formerly node-tesseract)
* **0.0.3**: Added support for custom preprocessors, OTB Preprocessor using ImageMagick 'convert'
* **0.0.2**: Refactored to support tesseract 3.01, added language parameter, config parameter, documentation
* **0.0.1**: Initial version from Desmond Morris
## Usage
```JavaScript
-var tesseract = require('node-tesseract');
+var nodecr = require('nodecr');
// Recognise text of any language in any format
-tesseract.process(__dirname + '/path/to/image.jpg',function(err, text) {
+nodecr.process(__dirname + '/path/to/image.jpg',function(err, text) {
if(err) {
console.error(err);
} else {
@@ -25,7 +26,7 @@ tesseract.process(__dirname + '/path/to/image.jpg',function(err, text) {
});
// Recognise German text in a single uniform block of text
-tesseract.process(__dirname + '/path/to/image.jpg',function(err, text) {
+nodecr.process(__dirname + '/path/to/image.jpg',function(err, text) {
if(err) {
console.error(err);
} else {
@@ -36,13 +37,13 @@ tesseract.process(__dirname + '/path/to/image.jpg',function(err, text) {
// Recognise text of any language in any format but preprocess the image
// with ImageMagick 'convert' (This requires ImageMagick to be installed)
-// You can write and use your own preprocessors easily, just have a look at lib/tesseract.js
-tesseract.process(__dirname + '/path/to/image.jpg',function(err, text) {
+// You can write and use your own preprocessors easily, just have a look at lib/nodecr.js
+nodecr.process(__dirname + '/path/to/image.jpg',function(err, text) {
if(err) {
console.error(err);
} else {
console.log(text);
}
console.log(text);
-}, null, null, null, tesseract.preprocessors.convert);
+}, null, null, null, nodecr.preprocessors.convert);
```
File renamed without changes.
View
@@ -1,16 +1,17 @@
{
- "name": "node-tesseract",
- "version": "0.0.3",
- "author": "Joscha Feth <joscha@feth.com>, Desmond Morris <hi@desmondmorris.com>",
+ "name": "nodecr",
+ "version": "0.0.4",
+ "author": "Joscha Feth <joscha@feth.com>",
"description": "A simple wrapper for the Tesseract OCR package",
- "main": "./lib/tesseract.js",
+ "main": "./lib/nodecr.js",
"repository": {
"type": "git",
- "url": "https://github.com/joscha/node-tesseract/"
+ "url": "https://github.com/joscha/nodecr/"
},
"keywords": [
"tesseract",
- "ocr"
+ "ocr",
+ "text recognition"
],
"dependencies": {
"tmp": ">= 0.0.14"
@@ -20,4 +21,4 @@
"engine": {
"node": ">=0.6"
}
-}
+}

0 comments on commit 9c0e2d9

Please sign in to comment.