nfv
Version:
[Updated to use ndv package instead dv] FormVision is a node.js library for extracting data from scanned forms
15 lines (11 loc) • 314 B
JavaScript
// Generated by CoffeeScript 1.12.7
var dv, tesseractInstance;
dv = require('ndv');
tesseractInstance = null;
module.exports = function(image) {
if (tesseractInstance == null) {
tesseractInstance = new dv.Tesseract();
}
tesseractInstance.image = image;
return tesseractInstance.thresholdImage();
};