UNPKG

nfv

Version:

[Updated to use ndv package instead dv] FormVision is a node.js library for extracting data from scanned forms

10 lines (7 loc) 267 B
dv = require 'ndv' tesseractInstance = null # Return a binarized version of *image*. Currently uses Tesseract for this. module.exports = (image) -> tesseractInstance ?= new dv.Tesseract() tesseractInstance.image = image return tesseractInstance.thresholdImage()