easy-tesseract-ocr
Version:
This is a tiny OCR project and just provide a caller method to interact with Tesseract (Which is a known open source OCR library project written in C++).
14 lines (12 loc) • 433 B
JavaScript
const eto = require('./../index.js');
console.log("\n-- test case 4: OCR scanning with character(s) comparision (traditional chinese), tra_chi-sample.png caompares with 繁體中文 --")
eto.scan({
imagePath: './test/tra_chi-sample.png',
compare: "繁體中文"
})
.then(function (probability) {
console.log("[result]\nprobability of matching: %d%", probability);
})
.catch(function (err) {
console.error(err);
});