UNPKG

fv

Version:

FormVision is a node.js library for extracting data from scanned forms

10 lines (7 loc) 275 B
dv = require 'dv' 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()