【发布时间】:2020-12-16 06:18:21
【问题描述】:
我想在使用网络摄像头或手机摄像头扫描二维码或条形码扫描仪后自动填写的地方进行输入。
对于我想像这样的脚本
<video autoplay = "true" id = "video-webcam">
</video>
<input type = "text" id = "scanresult">
<script>
external or internal script for scan qr or barcode. save result in variable = result
html DOM getElementById ('scanresult'). value (result);
</script>
我希望任何人都可以就我的问题给我建议或反馈。 谢谢
【问题讨论】:
-
您的脚本无效...为什么在标记中
=周围有空格? HTML 也不是这样的 -
对于条形码...搜索zxing或quagga ...非常简单的库使用
-
这只是伪代码,哦,好吧。我会试试的,谢谢。
标签: javascript html5-video qr-code webcam barcode-scanner