Page 2 of 2
Re: nuToys - ZXing barcode reader and fpdf
Posted: Wed Jan 27, 2021 11:24 am
by apmuthu
No need for a target="_blank" in the stylesheet include.
Re: nuToys - ZXing barcode reader and fpdf
Posted: Wed Jan 27, 2021 12:55 pm
by miasoft
Thank You All! I fixed everything as you suggested above. But something went wrong... Then I moved the code from Setup Header to Custom Code of HTML-obj:
27.01_7.png
And I'm getting the video now!
Re: nuToys - ZXing barcode reader and fpdf
Posted: Wed Jan 27, 2021 3:39 pm
by Janusz
I am glad that you manage to connect

Re: nuToys - ZXing barcode reader and fpdf
Posted: Fri Jan 29, 2021 1:03 pm
by miasoft
How test reader from image?
I change
Code: Select all
codeReader.decodeFromVideoDevice('', 'interactive-video', (result, err) => {
to
Code: Select all
codeReader.decodeFromImage('',"core/libs/barcodes/code-39.jpg",(result, err) => {
No error and no result
my image file:
code-39.jpg
Online test is OK for this file.
Re: nuToys - ZXing barcode reader and fpdf
Posted: Fri Jan 29, 2021 1:21 pm
by kev1n
Can you check if an error is output in the console using this code?
Code: Select all
codeReader
.decodeFromImage('',"core/libs/barcodes/code-39.jpg")
.then(result => console.log(result.text))
.catch(err => console.error(err));
I'm not sure if you need to pass an image as first 1. parameter (see examples here:
https://github.com/zxing-js/library)
Re: nuToys - ZXing barcode reader and fpdf
Posted: Fri Jan 29, 2021 1:35 pm
by Janusz
Hi, from my side I was testing only the case from live camera - so here can not share any experience for scanning from image.
For 1D code as well interesting to consider can be Quagga.
https://serratus.github.io/quaggaJS/
Re: nuToys - ZXing barcode reader and fpdf
Posted: Fri Jan 29, 2021 10:10 pm
by treed
Hi Janusz, I am doing barcodes with an Android phone that has a built in barcode scanner. The data is being collected in to a Kizeo forms app because it will run disconnected from the internet and resync the data when it's reconnected. While it works, right now someone needs to rekey the data into the nuBuilder database. I'm not to impressed with Kizeo because even simple data validation is not supported. The issue with barcodes is that they are not always in WiFi/Cell range when they need to be read. Any thoughts on how one might approach this scenario with nuBuilder? Another part of this app is signature collection which I see is possible in HTML5.
Re: nuToys - ZXing barcode reader and fpdf
Posted: Sat Jan 30, 2021 1:45 am
by Janusz
I do not know the Kizeo app, but just checked the android app "Free Barcode Scanner to excel"
and it works very well offline and stores locally on the phone data into ecxel - as well to every line can be added description and price.
So after when connected, excel can by transferred probably the best by ftp from android to PC - and next exported to csv and imported into nuBuilder.
and here how the stored data looks like:
For data transfer from android very helpful is Total Commander - you can transfer files to google cloud, to the server with sftp, etc
Przechwytywanie.JPG
Do not have such case but probably would approach it this way.