QR code读取相机 - 机器人 [英] QR code reading with camera - Android

查看:605
本文介绍了QR code读取相机 - 机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在研究建立在Android的闹钟应用程序。我完全,完全新的与QR codeS编程。我对它一无所知。但是现在,我想找出创建具有QR code功能的应用程序的可行性。 (我有两个星期建立这个)

I am currently researching to build an alarm clock application in Android. I am utterly and completely new to programming with QR codes. I know nothing about it. But right now, I want to find out the feasibility of creating an application with QR code functionality. (I have two weeks to build this)

我的第一个问题是:我会处理的相机自己在code也就是我必须启动它,然后将其关闭,然后再处理的QR图像

My first question is: would I have to handle the camera myself in the code i.e. do I have to fire it up and then close it and then process the QR image?

第二个问题:我如何创建QR code,然后当我扫描它,它是如何知道它扫描正确的?我想打印一个,将其放置在厨房或浴室,然后当警报响起时,我收到了警报关闭扫描code。

2nd Q: How would I create the QR code and then when I scan it, how does it know it scanned the right one? I want to print one, place it in the kitchen or bathroom and then when the alarm goes off, I have to scan the code before the alarm turns off.

推荐答案

在Android的,这需要大约10分钟:

In Android this requires about 10 minutes:

<一个href="https://github.com/zxing/zxing/wiki/Scanning-Via-Intent">https://github.com/zxing/zxing/wiki/Scanning-Via-Intent

这篇关于QR code读取相机 - 机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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