Skip to content

Repository files navigation

DocumentVision

DocumentVision is a node.js library for processing and understanding scanned documents.

Features

  • Image loading using jpgd, LodePNG and pixel buffers
  • Image manipulation using Leptonica (Version 1.69)
  • OCR using Tesseract (Version 3.02)
  • OMR for Barcodes using ZXing (Version 2.10 with PDF417 patches applied)

Installation

[sudo] npm install [-g] dv

Quick Start

Once you've installed, download that image. You can use any other image containing simple text at 300dpi or higher. Now run the following code snipped to recognize text from your image:

vardv=require('dv');varfs=require('fs');varimage=newdv.Image('png',fs.readFileSync('textpage300.png'));vartesseract=newdv.Tesseract('eng',image);console.log(tesseract.findText('plain'));

Whats next?

Here are some quick links to help you get started:

License

Licensed under the incredibly permissiveMIT License. Copyright © 2012 Christoph Schulz.

About

A node.js library for processing and understanding scanned documents

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages