{"repo":"cozmo/jsQR","free":true,"listed":false,"github":"https://github.com/cozmo/jsQR","clone":"git clone https://github.com/cozmo/jsQR.git","description":"A pure javascript QR code reading library. This library takes in raw images and will locate, extract and parse any QR code found within.","language":"TypeScript","stars":4025,"topics":["qrcode","qr-parsing-library","typescript","qr","qrcode-reader","qr-code","qr-scanner"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"jsQR A pure javascript QR code reading library. This library takes in raw images and will locate, extract and parse any QR code found within. Demo Installation NPM Available on npm. Can be used in a Node.js program or with a module bundler such as Webpack or Browserify. Browser Alternatively for frontend use jsQR.js can be included with a script tag A note on webcams jsQR is designed to be a completely standalone library for scanning QR codes. By design it does not include any platform specific code. This allows it to just as easily scan a frontend webcam stream, a user uploaded image, or be used as part of a backend Node.js process. If you want to use jsQR to scan a webcam stream you'll need to extract the ImageData from the video stream. This can then be passed to jsQR. The jsQR demo contains a barebones implementation of webcam scanning that can be used as a starting point and customized for your needs. For more advanced questions you can refer to the getUserMedia docs or the fairly comprehensive webRTC sample code, both of which are great resources for consuming a webcam stream. Usage jsQR exports a method that takes in 3 arguments representing the image data you wish to decode. Additionally can take an options object to further configure scanning behavior. Arguments - imageData - An Uint8ClampedArray of RGBA pixel values in the form [r0, g0, b0, a0, r1, g1, b1, a1, ...] . As such the length of this array should be 4 width height . This data is in the same form as the Ima","default_branch":null,"files":null,"tree":[],"storefront":"/r/cozmo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cozmo/jsQR/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}