jQuery 使用 Angular js HTML5 扫描条码和二维码
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17939663/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Barcode and Qrcode scanning using Angular js HTML5
提问by user2425109
I require to scan Barcode and Qrcode on Android /iphone/ipad devices. The Project is completely based on Angular JS and HTML5.It is mobile website.
我需要在 Android /iphone/ipad 设备上扫描条形码和二维码。该项目完全基于Angular JS和HTML5。它是移动网站。
Below is the requirement. It should not download any third party native application on device.So unable to use native Zxing application.
下面是要求。它不应在设备上下载任何第三方原生应用程序,因此无法使用原生 Zxing 应用程序。
So,is there any way in javascript/HTML5/jquery/Angular js through which we can scan barcode using native camera?
那么,在 javascript/HTML5/jquery/Angular js 中有什么方法可以让我们使用原生相机扫描条形码?
We tried below javascript library but found not useful as it is only for QRcode and not opening camera as well. https://github.com/LazarSoft
我们尝试了下面的 javascript 库,但发现它没有用,因为它仅适用于 QRcode 而不能打开相机。 https://github.com/LazarSoft
Please Help!!
请帮忙!!
回答by Sunil Kumar
回答by Sem
I adapted html5-qrcode plugin as AngularJS directive.
我将 html5-qrcode 插件改编为 AngularJS 指令。
You can find it in this repo:
你可以在这个 repo 中找到它: