Jump to content

Scan 1D/2D Code from Video Camera


Sherzod

Recommended Posts

Hi,

 

Quote

Did you forget to assign?

thanks for your replay, But I had found this from DFM file and done it.

 

<audio id="player" height="0px" src="files/beep-digital.mp3" style="display:none"></audio>
<div>
  <video id="video" width="100%" height="100%" style="border: 1px solid gray"></video>
</div>

<div id="sourceSelectPanel" style="display:none">
  <label for="sourceSelect">Change video source:</label>
  <select id="sourceSelect" style="max-width:400px">
  </select>
</div>

 

StringHtml.jpg

Link to comment
Share on other sites

  • 4 months later...
  • 7 months later...
On 2/22/2023 at 1:42 PM, Ario.Paxaz said:

Hi,

 

thanks for your replay, But I had found this from DFM file and done it.

 

<audio id="player" height="0px" src="files/beep-digital.mp3" style="display:none"></audio>
<div>
  <video id="video" width="100%" height="100%" style="border: 1px solid gray"></video>
</div>

<div id="sourceSelectPanel" style="display:none">
  <label for="sourceSelect">Change video source:</label>
  <select id="sourceSelect" style="max-width:400px">
  </select>
</div>

 

StringHtml.jpg

Hi all, I copied this into my program. and it succeed if I run it on my PC/laptop with windows os. but It failed if I run it on HP or tablet with android system.  

When I run on android,actually the device (video source) has successfully appeared in the combobox. So we can select from the front camera or back camera. But what doesn't appear is in the unihtmlframe (video) section.

Anyone have the same problem with me ? please share if anyone have a solution. is there something I missed ?

thanks before. 

 

Link to comment
Share on other sites

  • 2 weeks later...
On 11/11/2019 at 10:28 AM, Sherzod said:

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.rarUnavailable

Hi,

May I have this sample please.

It seems Unavailable.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...