如何使用网络摄像头和 php 或 javascript 扫描二维码
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15176369/
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
How to Scan QR code using webcam and php or javascript
提问by
I am trying to implement QR code. i've successfully implement it using phpqrcode. However I don't know about how to decode the QR code using webcam and php or javascript. I've tried to search it on google, but can't find any solution for this. Anyone could help me? Thank you so much
我正在尝试实现二维码。我已经成功地使用 phpqrcode 实现了它。但是我不知道如何使用网络摄像头和 php 或 javascript 解码二维码。我试图在谷歌上搜索它,但找不到任何解决方案。任何人都可以帮助我吗?非常感谢
采纳答案by CL22
you could use this jquery webcam pluginand then send the image to php-zbarcode. It uses zbarwhich can read qrcodes. Note that the plugin requires flash.
您可以使用此jquery 网络摄像头插件,然后将图像发送到php-zbarcode。它采用zbar和可读取qrcodes。请注意,该插件需要闪存。
There is also jsqrcodewhich you could use to scan and interpret the QR Code, however this requires HTML5 for displaying the webcam output, and flash for capturing.
还有jsqrcode,你可以用它来扫描并解释QR码,然而这需要HTML5,用于显示输出摄像头和闪光灯捕捉。
Here is a previous question pertaining to javascript-only solutions

