npm.io
1.0.15 • Published 10 years ago

node-opencv-zbar

Licence
ISC
Version
1.0.15
Deps
2
Vulns
0
Weekly
0
Stars
7
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

node-opencv-zbar

This nodejs addon uses the opencv library to connect to webcams or video files and the zbar library to scan the images looking for barcodes.

Requirements

  • [Nodejs]
  • [Nan]
  • [OpenCV]
  • [Zbar]

Installation

To use node-opencv-zbar you have to install OpenCV and Zbar

npm install node-opencv-zbar

Usage

var barcodeReader = require('node-opencv-zbar');

barcodeReader.readData(addres_to_file | address_to_ip_cam | id_device, [time_interval], function(data) {
	console.log(data); // Barcode captured
});