npm.io
1.0.2 • Published 5 years ago

node-camera-qr-reader

Licence
MIT
Version
1.0.2
Deps
3
Size
3 kB
Vulns
0
Weekly
0
Stars
2

node-camera-qr-reader

Capture and read a QR code from a camera from nodejs.

Usage

const captureQrCode = require('node-camera-qr-reader')

const opts = {
  retry: true,                // keep checking until a QR is found, default: false
  retryUntilTimeout: 10000    // milliseconds until giving up, default: never give up
}

const content = await captureQrCode(opts)

Dependencies

Linux

sudo apt-get install fswebcam

MacOS

brew install imagesnap