从带有相机的网页读取qrcode。 [英] Read qrcode from a web page with camera.

查看:652
本文介绍了从带有相机的网页读取qrcode。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找解决方案以读取网页上的QRCode。

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?

我现在想做什么,就是通过平板电脑/智能手机在网页上阅读。
我浏览到该页面,它要求我用相机对准QRCode,然后将扫描的内容发送回解码它的页面。

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应用程序?
它可以是另一种类型的二维条码,而不是一个QRCode。

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

这是他的存储库: 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆