JavaScript QR Code Reader - 可以做到吗?或者,远程服务? [英] JavaScript QR Code Reader - can it be done? Or, Remote Service?

查看:130
本文介绍了JavaScript QR Code Reader - 可以做到吗?或者,远程服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在对即将开展的项目做一些初步研究,我有一个简短的问题,我想我会在其他地方看到这里,以防任何人有这方面的经验。

I'm doing a bit of preliminary research on an upcoming project and I have a quick question that I figure I'll throw up here while I look elsewhere, in case anyone has any experience with this.

问题很简单:是否可以使用JavaScript读取QR码?是否有一个远程服务,我可以从相机传递一个位图对象,并这样做?目前是否有任何库允许这样做?

The question is simple: is it possible to read a QR code using JavaScript? Is there a remote service to which I can pass a bitmap object from a camera and do it that way? Are there currently any libraries that allow this?

该项目将部署到各种移动设备上,我们想尝试使用Appcelerator使其工作。我知道Appcelerator确实在其主机设备上公开了Camera API,但无论我们用它做什么都必须能够解析QR码。这是可以做到的吗?

The project is going to be deployed to various mobile devices and we'd like to try to use Appcelerator to make it work. I know Appcelerator does expose the Camera API on its host devices, but whatever we do with it has to be able to parse QR codes. Is this something that can be done?

提前致谢!
myk

Thanks in advance! myk

推荐答案

我打赌这是可能的,但这将是一个挑战。有人写了一个用于阅读二维码的AS3库。我首先阅读画布中的图像处理

I bet it's possible, but it would be a challenge. Someone's written an AS3 library for reading QR codes. I'd start by reading up on image manipulation in Canvas.

如果您沿着远程API路线走,请 Kaywa 您可以使用的API。

If you go down the remote API route, Kaywa have an API you may be able to use.

这篇关于JavaScript QR Code Reader - 可以做到吗?或者,远程服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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