A Node-RED node to decode a QR code from an image file.
Run the following command in the root directory of your Node-RED install or home directory (usually ~/.node-red) and will also install needed libraries.
npm install node-red-contrib-qrdecode
Input to the node is a buffer with image data. It outputs the message payload with decoded value of the QR code contained in the image.
If it does not detect or can not decode the QR code, it returns an error message in the message payload.
This node basically wraps the excellent qrcode-reader node module for decoding the QR code.
This node was tested to Node.js v8.10.0 LTS and NPM 5.6.0 on Node-Red v0.18.4
Typical use of this node will be with node-red-contrib-usbcamera.