Browse Source

add back lang string as a valid option

pull/73/head
Guillermo 8 years ago
parent
commit
d08ac24b82
  1. 1
      src/index.js

1
src/index.js

@ -17,6 +17,7 @@ class TesseractWorker { @@ -17,6 +17,7 @@ class TesseractWorker {
recognize(image, options = {}){
return this._delay(job => {
if (typeof options === 'string') options = {lang: options}
options.lang = options.lang || 'eng';
job._send('recognize', { image, options, workerOptions: this.workerOptions });

Loading…
Cancel
Save