Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread Barcode scan from smartphone
Tue, Apr 6 2021 7:15 AMPermanent Link

Huseyin Aliz

myBiss ApS

Avatar

Hi All.

Hope everyone are healthy and safe.
I am currently researching if i can scan barcodes from ewb2, and have
searched the forums and found few suggestions (cordova for instance).

I have found following (html5 access), which looks nice, but would like
to know if others have interesting inputs as well?

https://blog.minhazav.dev/qr-code-scanner-end-to-end/

Thanks in advance.

Regards,
Huseyin A.

Thu, Apr 8 2021 8:52 AMPermanent Link

erickengelke

Avatar

Huseyin Aliz wrote:
>I am currently researching if i can scan barcodes from ewb2, and have
>searched the forums and found few suggestions (cordova for instance).

I did it before in a project, both bar codes and QR codes.  I don't have the source available right now, but assure you it's doable.

It is no longer necessary to use Codova, you can do it all in EWB/JS with modern browsers (except not IE) as it doesn't support the HTML5 features for camera access (or quite a few others).  The first time you use it, the user has to grant permissions to access the camera in a pop-up window, otherwise it's seamless.

If you have a choice, I'd recommend QR codes over bar codes.  QR can hold a lot more information.

Good luck,

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Fri, Apr 9 2021 4:30 AMPermanent Link

Huseyin Aliz

myBiss ApS

Avatar

Hi Erick,

Thanks for your input. I would rather use EWB as much as i can.
Currently it seems that barcodes are primary used, but having an option
for using both qr and barcodes + uploading signature (picture) from the
smartphone/pad would satisfy my needs Smile

If you find the source someday, I would be glad to see how it can be done.

Thanks again.

Regards,
Huseyin

Den 08-04-2021 kl. 14:52 skrev erickengelke:
> Huseyin Aliz wrote:
>> I am currently researching if i can scan barcodes from ewb2, and have
>> searched the forums and found few suggestions (cordova for instance).
> I did it before in a project, both bar codes and QR codes.  I don't have the source available right now, but assure you it's doable.
>
> It is no longer necessary to use Codova, you can do it all in EWB/JS with modern browsers (except not IE) as it doesn't support the HTML5 features for camera access (or quite a few others).  The first time you use it, the user has to grant permissions to access the camera in a pop-up window, otherwise it's seamless.
>
> If you have a choice, I'd recommend QR codes over bar codes.  QR can hold a lot more information.
>
> Good luck,
>
> Erick
> EWB Programming Books and Component Library
> http://www.erickengelke.com
>
Fri, Apr 9 2021 1:13 PMPermanent Link

erickengelke

Avatar

Huseyin Aliz wrote:
>Thanks for your input. I would rather use EWB as much as i can.
>Currently it seems that barcodes are primary used, but having an option
>for using both qr and barcodes + uploading signature (picture) from the
>smartphone/pad would satisfy my needs Smile

I'm working on adding this capabilities to my Nice Components kit.  

The work in progress works well with both bar codes and QR codes.  I haven't tested on a phone yet or with multiple cameras.

You can see the working prototype at:
 https://erickengelke.com/nice/testbarcodeqr.html

Hint, it needs to be https or the camera won't work.  That's part of the WebRTC standard.  It works with every browser except IE.

I need to add support for multiple cameras and clean up a few things before it's ready.  Probably I'll release it before Monday.  It's a $50 cost for a lifetime subscription to the whole toolkit, you may find other things useful.

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Fri, Apr 9 2021 9:59 PMPermanent Link

erickengelke

Avatar

erickengelke wrote:

>Huseyin Aliz wrote:
>>Currently it seems that barcodes are primary used, but having an option
>>for using both qr and barcodes + uploading signature (picture) from the
>>smartphone/pad would satisfy my needs Smile

>I'm working on adding this capabilities to my Nice Components kit.  

I've completed adding it to the nice toolkit.  Anyone with a subscription can download the latest version with Barcodes/QRcodes.

It works on computers and phones alike.  My Pixel 4 couldn't scan well from the front facing camera - too low quality, but the rear facing camera works perfectly.

See the sample in: https://www.erickengelke.com/nice/samples.html
The QR page is about 30 lines of header and 60 lines of code to do everything you see for QR and Barcodes alike.

Erick

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Sun, Apr 11 2021 6:25 AMPermanent Link

Trinione

Great!



erickengelke wrote:

erickengelke wrote:

>Huseyin Aliz wrote:
>>Currently it seems that barcodes are primary used, but having an option
>>for using both qr and barcodes + uploading signature (picture) from the
>>smartphone/pad would satisfy my needs Smile

>I'm working on adding this capabilities to my Nice Components kit.  

I've completed adding it to the nice toolkit.  Anyone with a subscription can download the latest version with Barcodes/QRcodes.

It works on computers and phones alike.  My Pixel 4 couldn't scan well from the front facing camera - too low quality, but the rear facing camera works perfectly.

See the sample in: https://www.erickengelke.com/nice/samples.html
The QR page is about 30 lines of header and 60 lines of code to do everything you see for QR and Barcodes alike.

Erick

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com

........................................................
PascalNetwork.com
pascal - the language we love
Image