Questions tagged [zxing-js]

ZXing for JavaScript topics. ZXing is a high performance barcode scanner with ports to multiple languages, one of them is JavaScript (or TypeScript).

28 questions
3
votes
1 answer

ZXing force rear camera on android device?

I am building a project that uses the ZXing library to scan barcodes. Currently the code I have is working for iOS device opening up the rear camera but when testing using android device it opens up the front camera. Is there a way I can always…
techietalk
  • 109
  • 2
  • 12
2
votes
2 answers

ZXing Library will decode QR code but not barcode

I am using ZXing library to decode QR codes and barcodes in a HTML / JS environment. The following code returns a valid response with any QR code, but produces an error with regular UPC-A (or any other) barcodes. Code is based…
user1129107
  • 205
  • 1
  • 8
  • 16
2
votes
0 answers

zxing-js default zoom level on Huawei P30

I have a website which uses the zxing-js lib to scan for barcodes. The whole process is working, the only issue is, that on a Huawei P30 the video is zoomed in by default, whereas on a Redmi Note9 it shows up without any zoom(same browser on both;…
roediGERhard
  • 163
  • 1
  • 12
2
votes
1 answer

Vue.js/TypeScript: events from component not picked up

I have an issue with listening to events emitted by a barcode reader, which I largely copied from GitHub. The issue is that events, emitted by the BarcodeScanner component, aren't picked up by the encapsulating component (which is a modified…
SeverityOne
  • 2,476
  • 12
  • 25
2
votes
1 answer

How can I scan a QR code from a webcam using ZXing in JS?

I couldn't set up the library following up the README examples on the main repository. I do not wan't to use ES6, AMD or any method that require build steps.
Machado
  • 8,965
  • 6
  • 43
  • 46
2
votes
2 answers

Not closing camera in zxing

In the Zxing library, I want to close the camera when the user clicks cancel. So I used a button and add onclick event to it. it is calling resetReader method. I called this method after gets a barcode value or in the cancel button onclick event.If…
Harendrra
  • 107
  • 1
  • 10
1
vote
0 answers

Zxing Crop video to scan barcode

I create a project to scan a barcode, but on mobil or webCam the frame is too big. I want crop it. I read lot of thing about, apparently already implemented function... but I don't
YannickIngenierie
  • 602
  • 1
  • 13
  • 37
1
vote
0 answers

Maximum characters limit for Zxing QR code scanner

I am using QZXing Qt library for the reading the QR code, I would like to know what is the maximum characters limit can a QZXing can support. Thanks in advance
Rakesh Varma
  • 21
  • 1
  • 2
1
vote
1 answer

Third-party lib within the UI5 app is only loaded after a refresh

I'm trying to implement the ZXing barcode scanner library inside my UI5 project. For this I'm following the following tutorial: https://blogs.sap.com/2021/02/01/native-js-zxing-scanner-in-sapui5/. So far it works pretty well. Now I've discovered…
thmspl
  • 2,437
  • 3
  • 22
  • 48
1
vote
1 answer

Blazor Server, ZXing barcode scanner - The current thread is not associated with the Dispatcher. How to correct?

I have a Blazor server application and have been trying to get the ZXing barcode scanner to work. I can successfully scan over and over when debugging locally. But when I try to scan after publishing on an Azure App Service, the code scans…
1
vote
1 answer

PrimeFaces Extension codeScanner results in a white screen

I'm trying to replicate this example https://www.primefaces.org/showcase-ext/views/codeScanner.jsf but a white screen appears, somebody can help me?
1
vote
1 answer

"export 'BrowserMultiFormatReader' was not found in '@zxing/browser'

I have a rails project with webpacker, I was using "@zxing/library": "^0.17.1" for scanning barcode but as they have released a new library "@zxing/browser" so I am trying to upgrade to it. So I have added this to package.json: …
1
vote
0 answers

Scanning Multiple 1D Barcodes (CODE -128) with ZXING

I have managed to scan a TIFF file with ZXING. this file has 4 1D barcodes inside but ZXING brings out 2 horizontal barcodes. How can it be possible to scan the Verticals barcodes? The current code scans successfully ONLY horizontal barcodes, but…
Yaniv Levy
  • 78
  • 10
1
vote
2 answers

How do I get the camera view to work in ngx-scanner?

I'm making an app that makes use of a QR code scanner. I'm using the ngx-scanner component which is a ported version of Google's ZXing scanning library for Angular. The problem: Everytime I'm using the scanner component I get no errors but the…
0
votes
0 answers

Getting video warning while loading video from BrowserCodeReader

Implemented QR scanner component with @zxing/library and getting warning on browser while video is loaded. Any idea why they are showing and how to overcome these warnings? Here is my component and warning on browser console: import {…
tsm009
  • 39
  • 1
  • 9
1
2