简体   繁体   English

使用Angular js HTML5进行条形码和Qrcode扫描

[英]Barcode and Qrcode scanning using Angular js HTML5

I require to scan Barcode and Qrcode on Android /iphone/ipad devices. 我需要在Android / iphone / ipad设备上扫描条形码和Qrcode。 The Project is completely based on Angular JS and HTML5.It is mobile website. 该项目完全基于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. 我们尝试了下面的javascript库,但发现没有用,因为它只适用于QRcode而不是打开相机。 https://github.com/LazarSoft https://github.com/LazarSoft

Please Help!! 请帮忙!!

Please read through this plugin, should help you achieve what you are looking for. 请仔细阅读此插件,以帮助您实现所需的目标。 Try the DEMO LINK - This is a cross platform jQuery library to create a QRcode reader for HTML5 compatible browser. 试试DEMO LINK - 这是一个跨平台的jQuery库,用于为兼容HTML5的浏览器创建QRcode阅读器。

I adapted html5-qrcode plugin as AngularJS directive. 我将html5-qrcode插件改编为AngularJS指令。

You can find it in this repo: 你可以在这个回购中找到它:

https://github.com/sembrestels/angular-qr-scanner https://github.com/sembrestels/angular-qr-scanner

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM