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

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

问题描述

我正在对一个即将到来的项目进行一些初步研究,我有一个快速的问题,我想我会在寻找其他地方时提出这个问题,以防有人对此有任何经验.

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 读取二维码?是否有远程服务可以将位图对象从相机传递到该服务并以这种方式执行?目前是否有任何图书馆允许这样做?

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?

提前致谢!我的

推荐答案

我敢打赌这是可能的,但这将是一个挑战.有人编写了一个 AS3 库,用于读取 QR 码.我首先阅读 Canvas 中的图像处理.

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 码阅读器 - 可以做到吗?或者,远程服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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