Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Barcode scanner for mobile phone for Website in form [closed]

I have inventory maintenance website up and running. currently the back end users are manually typing the item id on the system and using to search and do their work. I would like to automate the typing to scanning qr codes. We are trying to implement users to use their mobile phone camera to act as a scanner.

Thus the user set focus on the text-box and uses his mobile phone to scan the code and the value has to be automatically placed on the text box.

The apps in the market do not transfer data into a pc or web form directly. We are trying to implement an open source web scanner rather then buying an expensive product or app. Can you suggest one or must we create our own app? If so, where can I start from?

like image 839
M.A Avatar asked Jul 19 '13 04:07

M.A


People also ask

Can you scan barcodes off phone screen?

Laser scanners cannot scan barcodes displayed on phone screens because light is not reflected back. Mobile phones have anti-reflection technology to prevent glare and they are constantly emitting their own light from their LCD screens.

Why is my barcode scanner not working on my phone?

Your phone's camera may have trouble scanning the code if it's tilted at an angle. Make sure that it's level with the surface that the code is printed on. If you're holding your phone too close or too far away, it won't scan the code.

Can I scan a barcode on a website?

Typical Use Cases. When end users will not be using a native mobile app, they can simply browse to a website from a camera-equipped device, scan barcodes and input the results into the web application. See how in these demos.

How do I open a website barcode?

To access the URL on your smart device, click on the plugin icon, a QR code for the current page is shown on the screen. 3. Read the QR code with your smartphone and quickly access the URL in your device with minimal effort.

How to scan a barcode with an Android phone?

How to Scan a Barcode With an App? The camera app on newer generation Android phones has a built-in QR code scanning capability. In most cases, all you have to do is open the app and place the code in front of the lens. However, to scan QR codes, older Android OS versions need third-party software.

Do you need a mobile barcode scanner for your website?

You have a requirement to enable web-based barcode scanning for your mobile browsers. But, you don’t want to do it via an app since it requires extra effort for both users and developers. You also want to enable users to read barcodes from your website via the camera of a mobile phone or tablet.

Is there a barcode scanner SDK for the web?

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.

How to decode barcodes in mobile browsers?

There are mainly two ways to decode barcodes in mobile browsers: Our JavaScript barcode reader SDK based on WebAssembly technology enables you to read barcodes from live video stream within desktop and mobile browsers. It supports real-time localization and decoding from live camera feed. Supported barcodes include:


3 Answers

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."

like image 114
bchr02 Avatar answered Oct 19 '22 03:10

bchr02


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 !

like image 13
edi9999 Avatar answered Oct 19 '22 01:10

edi9999


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>
  • npm
  • Documentation

Disclaimer: I work for Scandit

like image 7
mak Avatar answered Oct 19 '22 01:10

mak