使用相机从网页中读取 qrcode. [英] Read qrcode from a web page with camera.
问题描述
我正在寻找在网页上读取二维码的解决方案.
Im looking for a solution to read a QRCode on a webpage.
假设我用 PHP 和一些库(zxing 或其他东西)生成了一个 QRCode 并将其打印在一张纸上,好吗?
Lets say I've generated with PHP and some library (zxing or something else) a QRCode and its printed on a piece of paper, ok?
我现在想做的是用平板电脑/智能手机通过网页读回它.我浏览到那个页面,它要求我用相机对准二维码,然后将扫描的内容发送回解码它的页面.
What i would like to do now, is to read it back with tablet/smartphone throught a web-page. I browse to that page, it asks me to aim the QRCode with the camera, and then the scanned content is sent back to the page that decodes it.
有什么东西可以在不需要使用 Android/iOS 应用的情况下处理这个问题?它也可以是另一种二维条码,而不仅仅是二维码.
There's something out there to handle this without the need to use an Android/iOS app? It could be another type of 2D barcode aswell, not exclusively a QRCode.
TY
推荐答案
我曾经使用过 Lazarsoft 的 jsqrcode
I have once worked with Lazarsoft's jsqrcode
它在浏览器中运行良好,我知道他做了一个演示,在带摄像头的手机上进行测试.
It worked fine in the browser, and I know he made a demo to test on a phone with camera.
这是他的存储库:https://github.com/LazarSoft/jsqrcode
对于相机支持:使用 CamCanvas API:http://www.taboca.com/p/camcanvas/
For camera support: use the CamCanvas API: http://www.taboca.com/p/camcanvas/
这篇关于使用相机从网页中读取 qrcode.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!