You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.2 KiB
HTML
32 lines
1.2 KiB
HTML
---
|
|
layout: examples
|
|
title: Demo with live-stream
|
|
showInMenu: false
|
|
---
|
|
|
|
<section id="container" class="container">
|
|
<h3>The user's camera</h3>
|
|
<p>If your platform supports the <strong>getUserMedia</strong> API call, you can try the real-time locating and decoding features.
|
|
Simply allow the page to access your web-cam and point it to a barcode. You can switch between <strong>Code128</strong>
|
|
and <strong>EAN</strong> to test different scenarios.
|
|
It works best if your camera has built-in auto-focus.
|
|
</p>
|
|
<div class="controls">
|
|
<fieldset class="reader-group">
|
|
<label>Code128</label>
|
|
<input type="radio" name="reader" value="code_128" checked />
|
|
<label>EAN</label>
|
|
<input type="radio" name="reader" value="ean" />
|
|
</fieldset>
|
|
<br clear="all" />
|
|
</div>
|
|
<div id="result_strip">
|
|
<ul class="thumbnails"></ul>
|
|
</div>
|
|
<div id="interactive" class="viewport"></div>
|
|
</section>
|
|
|
|
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
|
|
<script src="https://raw.githubusercontent.com/serratus/quaggaJS/master/dist/quagga.js" type="text/javascript"></script>
|
|
<script src="live_w_locator.js" type="text/javascript"></script>
|