Skip to content

Commit

Permalink
Cleaning README
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgco committed Jun 13, 2012
1 parent 96780a1 commit 0dc7756
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions README.md
Expand Up @@ -18,25 +18,24 @@ Node-zbar can then be installed via NPM

npm install zbar

## Istallation

Currently node-zbar watches for QRCodes using the specified input device.

zbar.watch

First, require the module
Then, require the module

var zbar = require('zbar');


## Usage

zbar.watch(device, [options], listener)

Watch for data on device. `device` is a path to a supported webcam device. For example `/dev/video0`

The second argument is optional. The options if provided should be an object. The list of available options are as following:

`width` - scale the width of the sampled image

`height` - scale the width of the sampled image

`dataType` - can be `raw` or `xml`. default is `raw`

The listener callback gets two arguments (error, data). Data is the data returned from a barcode.
Expand Down

0 comments on commit 0dc7756

Please sign in to comment.