ZXing for JavaScript topics. ZXing is a high performance barcode scanner with ports to multiple languages, one of them is JavaScript (or TypeScript).
Questions tagged [zxing-js]
28 questions
0
votes
0 answers
Reset function not working with "@zxing/Browser" in React TypeScript
I'm trying to close the reader with reset() function but it's giving an error.
Here is my component:
import { BrowserMultiFormatReader } from "@zxing/browser"
const videoRef = useRef(null)
const reader = useRef(new…

tsm009
- 39
- 1
- 9
0
votes
0 answers
Adding a crop box on video element to scan QR code
I have used "@zxing/library" to scan QR code. Now I want to show a frame box to specify the QR scan area instead of whole video box. I see a function name drawFrameOnCanvas() but unable to find an example of utilising that function for this…

tsm009
- 39
- 1
- 9
0
votes
0 answers
Zxing JS zoom on Apple
I use decodeFromVideoDevice with zoom Parms {facingMode:"environment",zoom:4}.
On Android Devices it works but not on Apple.
Is there another parm or an option where I can use zoom in zxing js on Apple?
decodeFromVideoDevice with zoom Parms…

volpanak
- 1
0
votes
1 answer
How to read qr-code from video , without passing deviceId in zxing's js library
The decodeFromInputVideoDevice function only works only when we pass the deviceID to it .
It there any other function where could directly pass the camera stream , without passing the deviceId
I cannot any method the specific use case in the docs
0
votes
0 answers
ZXing-js/browser returns a ChecksumError no matter what QR Code I use
I'm having an issue with ZXing-js. Its returning a ChecksumException no matter what QR Code I put into it. So its detecting the QRCode but throws an Exception. The following is my vuejs 2.0 code. Please help.
Almost all if this code works. Its just…

pneves
- 1
- 2
0
votes
1 answer
Error: Zxing functions does not exists. React QR Scanning App
I am trying add a qr code scanning functionality to my react app. I am using @zxing(https://www.npmjs.com/package/@zxing/browser & https://www.npmjs.com/package/@zxing/library) packages.
Following the readme, here's my js code. I have hosted the…

Aryan Arora
- 143
- 2
- 12
0
votes
1 answer
input from a scan to a form builder in angular
I need to fill in a field of a form builder using the zxing-js library, I am able to read the qrcode and insert this data into the input, but when submitting the field it is blank, if the insertion is from the keyboard everything goes perfectly. ..…
0
votes
0 answers
How can I scan GTIN/GS1-IR barcode with zxing js in angular?
I'm using livestreaming barcode scanner in my project but I have problem with scanning GTIN/GS1 barcodes. like barcode below
I have tried all options bellow
formatsEnabled: BarcodeFormat[] = [
BarcodeFormat.CODE_128,
…

Vala Khosravi
- 2,352
- 3
- 22
- 49
0
votes
0 answers
Not able to scan datetime format barcode using zxing barcode scanner
I integrated ZXING barcode scanner into my project but its not working for datetime format 2021-05-19 12:25:09
I tried to scan using https://zxing-js.github.io/ngx-scanner and enable all the format but no luck.
In my codebase after scanning I am…

vikram singh
- 21
- 1
- 4
0
votes
2 answers
zxing-scanner resize to full height with angular
I need that my scanner is full height. Because it will be used also in other devices like tablet, laptop or phones in a webpage.
My code looks like this:

Eagle95
- 36
- 7
0
votes
0 answers
Uncaught SyntaxError: Unexpected token 'export' - Karma config setup - Angular.js 1.x - javascript
What needs to be changed in below karma.config in order to resolve below error
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
// 'node_modules/@zxing/library/*.js'
…

Mr. Learner
- 978
- 2
- 18
- 48
-1
votes
1 answer
Why QR code with 'LOW' error correction, when given 1/5 scaled logo will work well, but when given 1/8 scaled logo will change its payload
I'm writing an application that generate and read QR to pass data. The QR content is base64 encoded binary (I'll call it payload for this purpose)
The payload is quite long (answer should not try to reduce the length of the payload) and the content…

Kristian
- 2,456
- 8
- 23
- 23
-3
votes
1 answer
How to read multiple barcode reader?
I want to scan all barcode 1D in an image.
I'm using @zxingjs/library, i can scan 1 barcode but not all.
How i can do it with nodejs?
I know that there is an interface MUltipleBarcodeReader with 2 methods, but I don't know how to use it in my…

Awais Ahmed
- 3
- 3