Barcode scanner for mobile phone for Website in form [closed]
There's a JS QrCode scanner, that works on mobile sites with a camera:
https://github.com/LazarSoft/jsqrcode
I have worked with it for one of my project and it works pretty good !
Check out https://github.com/serratus/quaggaJS
"QuaggaJS is a barcode-scanner entirely written in JavaScript supporting real- time localization and decoding of various types of barcodes such as EAN, CODE 128, CODE 39, EAN 8, UPC-A, UPC-C, I2of5, 2of5, CODE 93 and CODABAR. The library is also capable of using getUserMedia to get direct access to the user's camera stream. Although the code relies on heavy image-processing even recent smartphones are capable of locating and decoding barcodes in real-time."
Scandit is a startup whose goal is to replace bulky, expensive laser barcode scanners with cheap mobile phones.
There are SDKs for Android, iOS, Windows, C API/Linux, React Native, Cordova/PhoneGap, Xamarin.
There is also Scandit Barcode Scanner SDK for the Web which the WebAssembly version of the SDK. It runs in modern browsers, also on phones.
There's a client library that also provides a barcode picker component. It can be used like this:
<div id="barcode-picker" style="max-width: 1280px; max-height: 80%;"></div><script src="https://unpkg.com/scandit-sdk"></script><script> console.log('Loading...'); ScanditSDK.configure("xxx", {engineLocation: "https://unpkg.com/scandit-sdk/build/" }).then(() => { console.log('Loaded'); ScanditSDK.BarcodePicker.create(document.getElementById('barcode-picker'), { playSoundOnScan: true, vibrateOnScan: true }).then(function(barcodePicker) { console.log("Ready"); barcodePicker.applyScanSettings(new ScanditSDK.ScanSettings({ enabledSymbologies: ["ean8", "ean13", "upca", "upce", "code128", "code39", "code93", "itf", "qr"], codeDuplicateFilter: 1000 })); barcodePicker.onScan(function(barcodes) { console.log(barcodes); }); }); });</script>
Disclaimer: I work for Scandit