Jump to content
uniGUI Discussion Forums
Sherzod

Scan 1D/2D Code from Video Camera

Recommended Posts

Hello!

This example shows how to scan any supported 1D/2D code with ZXing javascript library from the device video camera...

This is an approximate implementation and may need to improve the code :) 

The main scan implementation is taken from here: https://zxing-js.github.io/library/examples/multi-camera/

You also need to add the files: libeay32.dll, ssleay32.dll and pem files to the root directory...

UniServerModule -> CustomFiles:

files/zxing.min.js

BarcodeScannerZxingJS.rar

  • Like 1
  • Upvote 4

Share this post


Link to post
Share on other sites

Apple iOS

Cannot enumerate devices, method not supported.

Win10 Desktop Chrome

Cannot enumerate devices, method not supported.

Share this post


Link to post
Share on other sites
43 minutes ago, andyhill said:

Cannot enumerate devices, method not supported.

Do you use SSL?

Share this post


Link to post
Share on other sites

In the code you posted no, but in my own websites - yes, I will test there.

Share this post


Link to post
Share on other sites
4 minutes ago, andyhill said:

In the code you posted no, but in my own websites - yes, I will test there.

I mean, the example uses SSL, without SSL, in short, you cannot use the camera...

Share this post


Link to post
Share on other sites
3 minutes ago, andyhill said:

ZXing not defined ?

UniServerModule -> CustomFiles:

files/zxing.min.js

 

Share this post


Link to post
Share on other sites
1 hour ago, brunomf01 said:

image.png.8d23b4cc671004629f66c5e70aff3d93.png

 

On 11/12/2019 at 10:56 AM, Sherzod said:

I mean, the example uses SSL, without SSL, in short, you cannot use the camera...

 

On 11/11/2019 at 12:28 PM, Sherzod said:

You also need to add the files: libeay32.dll, ssleay32.dll and pem files to the root directory...

 

Share this post


Link to post
Share on other sites

×