Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

nuToys - ZXing barcode reader and fpdf

Questions related to using nuBuilder Forte.
apmuthu
Posts: 249
Joined: Sun Dec 06, 2020 6:50 am
Location: Chennai, India, Singapore

Re: nuToys - ZXing barcode reader and fpdf

Unread post by apmuthu »

No need for a target="_blank" in the stylesheet include.
miasoft
Posts: 156
Joined: Wed Dec 23, 2020 12:28 pm
Location: Russia, Volgograd
Has thanked: 32 times
Been thanked: 7 times
Contact:

Re: nuToys - ZXing barcode reader and fpdf

Unread post 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!
You do not have the required permissions to view the files attached to this post.
Wbr, miasoft.
Janusz
nuBuilder Team
Posts: 506
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 8 times
Been thanked: 18 times

Re: nuToys - ZXing barcode reader and fpdf

Unread post by Janusz »

I am glad that you manage to connect :-)
If you like nuBuilder, please leave a review on SourceForge
miasoft
Posts: 156
Joined: Wed Dec 23, 2020 12:28 pm
Location: Russia, Volgograd
Has thanked: 32 times
Been thanked: 7 times
Contact:

Re: nuToys - ZXing barcode reader and fpdf

Unread post 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.
You do not have the required permissions to view the files attached to this post.
Wbr, miasoft.
kev1n
nuBuilder Team
Posts: 4291
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: nuToys - ZXing barcode reader and fpdf

Unread post 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)
Janusz
nuBuilder Team
Posts: 506
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 8 times
Been thanked: 18 times

Re: nuToys - ZXing barcode reader and fpdf

Unread post 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/
If you like nuBuilder, please leave a review on SourceForge
treed
Posts: 205
Joined: Mon May 18, 2020 12:02 am
Been thanked: 2 times
Contact:

Re: nuToys - ZXing barcode reader and fpdf

Unread post 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.
Janusz
nuBuilder Team
Posts: 506
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 8 times
Been thanked: 18 times

Re: nuToys - ZXing barcode reader and fpdf

Unread post 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.
You do not have the required permissions to view the files attached to this post.
If you like nuBuilder, please leave a review on SourceForge
Post Reply