如何在不捕获图像的情况下识别条形码,QR码? [英] How BarCode,QR Code are recognized without capturing the image?

查看:96
本文介绍了如何在不捕获图像的情况下识别条形码,QR码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道如何识别条形码和QR码(甚至是字符)而不捕获它.我在许多应用程序中都看到过,当我们将设备保持在上述任何一项(QR/条形码)之上时,该应用程序会自动识别并开始处理.是否有用于此目的的任何扫描机制?如何做到这一点?这涉及什么机制?

I wonder how Bar Code and QR Code (even character) are recognized without capturing it.I have seen in many app, when we keep our device above any of these (QR/Bar Code), the app automatically recognize it and starts processing. Is there any scanning mechanism used for this? How this can be achieved? What are mechanism involving in this?

谢谢.

推荐答案

  1) The phone camera will be launched by the library it will autofocus and scans until it finds the decoded info from the image displayed by camera

  2) The info will be parsed by the library and it will give you the result.

解码后的信息是其中已解码信息的条形码"

the decoded info is "the bar code which has a information decoded in it"

Example for QRCode: The data is present as square 

        for barcode: the data is present as vertical lines 

该库具有用于根据格式检测代码类型和解码的所有逻辑. 请阅读更多QrCode/条形码库文档或实施它并学习

The library has all the logics for detecting the type of code and decoding as per the format. Please read more the QrCode/Bar code libraries docs or implement it and learn

这篇关于如何在不捕获图像的情况下识别条形码,QR码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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