diff --git a/lib/tesseract.js b/lib/tesseract.js index 2f7e13c..17ab76d 100644 --- a/lib/tesseract.js +++ b/lib/tesseract.js @@ -63,7 +63,11 @@ var Tesseract = { } if (options.psm !== null) { - command.push('-psm ' + options.psm); + command.push('--psm ' + options.psm); + } + + if (options.oem !== null) { + command.push('--oem ' + options.oem); } if (options.config !== null) { diff --git a/package.json b/package.json index 3fd64b5..6215719 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-tesseract", - "version": "0.2.7", + "version": "1.0.0", "author": "Desmond Morris ", "description": "A simple wrapper for the Tesseract OCR package", "main": "index.js",