freel's avatar
Level 8

Barcode cam reader

Hello team,

I have to create the web, where the user in search field selecting button scan and he is able to scan the barcode using his tablet or phone. It should activate phone camera.

Trying to understand how to accomplish it.

So so far I found js library quaggaJS, but as I understand it returns me the image.

Is any chance to get return EAN number? How are you doing this? Please share your experience.

0 likes
7 replies
willvincent's avatar

It's definitely pulling the value out of the image, so you could probably use quagga. However, I just tested it using their example and found it not terribly reliable, I got several different results for a single UPC barcode.

Erik's avatar

If you are using a tablet/phone is it running android? Because I recently build something along the lines of this.

willvincent's avatar

If you're building a native app with something like ionic... Cordova/PhoneGap has the ability to natively access the camera and scan barcodes.

freel's avatar
Level 8

It is like web shop. I need to scan the barcode and compare prices with prices in my DB. Like amazon have in their app. But in my situation, it's website, not android / iPhone app

freel's avatar
Level 8

@willvincent you were able to run it :) In demo version it working, when I am trying to run it in my web getting errors...

going to investigate...

Please or to participate in this conversation.