Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dv

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dv

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

  • 2.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
198
increased by10%
Maintainers
2
Weekly downloads
 
Created
Source

DocumentVision NPM version Build Status Windows Build status devDependency Status

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

Features

  • Image loading using jpeg-compressor, LodePNG and pixel buffers
  • Image manipulation using Leptonica (Version 1.69) and OpenCV (Version 2.4.9)
  • Line Segment Detection using LSWMS
  • OCR using Tesseract (Version 3.03)
  • OMR for Barcodes using ZXing (Version 2.3.0)

Installation

$ npm install 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 snippet to recognize text from your image:

var dv = require('dv');
var fs = require('fs');
var image = new dv.Image('png', fs.readFileSync('textpage300.png'));
var tesseract = new dv.Tesseract('eng', image);
console.log(tesseract.findText('plain'));

What's next?

Here are some quick links to help you get started:

Versioning

DocumentVision is maintained under the Semantic Versioning guidelines as much as possible:

  • Version number format is <major>.<minor>.<patch>
  • Breaking backward compatibility bumps the major (resetting minor and patch)
  • New additions without breaking backward compatibility bumps the minor (resetting patch)
  • Bug fixes and other changes bumps the patch

License

Licensed under the MIT License. See LICENSE.

External libraries are licensed under their respective licenses.

Keywords

FAQs

Package last updated on 04 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc