Skip to content

Commit

Permalink
Configured sample to work with TESSERACT engine
Browse files Browse the repository at this point in the history
  • Loading branch information
renzosala committed Dec 18, 2019
1 parent 126b24e commit 6edbe74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sample/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
progress: { status: "Cleaning image", progress: 0 }
};
displayProgress(progressLabel);
bcr.recognize(b64, displayResult, displayProgress, sampleOcr);
bcr.recognize(b64, displayResult, displayProgress);
});

};
Expand Down
2 changes: 1 addition & 1 deletion sample/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Description: demo app

async function init() {
console.log("init BCR");
await bcr.initialize(ocrEngines.GOOGLEVISION, cropStrategy.SMART, languages.ENGLISH, 2160, 1440, false, true);
await bcr.initialize(ocrEngines.TESSERACT, cropStrategy.SMART, languages.ENGLISH, 2160, 1440, false, true);
console.log("BCR initialized");
}

Expand Down

0 comments on commit 6edbe74

Please sign in to comment.