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) • 340 B
JavaScript
const eto = require('./../index.js');
console.log("\n-- test case 3: basic OCR scanning (traditional chinese), tra_chi-sample.png --");
eto.scan({
imagePath: './test/tra_chi-sample.png',
trainedData: 'chi_tra'
})
.then(function (text) {
console.log('[result]\n', text);
})
.catch(function (err) {
console.error(err);
});