条形码扫描如何工作? [英] How Does BarCode Scanning Work?

查看:90
本文介绍了条形码扫描如何工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿朋友

关于条码扫描的工作原理有什么想法吗?

假设我从市场上购买了条形码扫描仪,并且需要在我的应用程序中用它扫描药物.

关于

Hey Friends

Any ideas on how bar code scanning works?

Let''s say I buy a bar code scanner from a market and I need to scan medicine with it in my application.

Regards

推荐答案

我假设您的问题是技术性的.无论如何,让我们从这里的la脚解释开始条形码扫描的工作原理 [ ^ ]

现在,如果您想从扫描仪中读取原始数据,则可以在这里进行讨论, http://sourceforge.net/apps/mediawiki/zbar/index.php?title= HOWTO:_Scan_images_using_the_API [ ^ ]

有很多第三方库也可以方便地读取条形码,有些甚至带有自己的条形码扫描仪.
I am assuming your question is technical. In any case let us start with lame explanation here How bar code scanning works[^]

Now, if you want to read raw data from the scanner, well you can, see the discussion here http://bytes.com/topic/c/answers/569742-reading-data-barcode-scanner-using-c[^] and this walks you through how to scan the bar code images http://sourceforge.net/apps/mediawiki/zbar/index.php?title=HOWTO:_Scan_images_using_the_API[^]

There are many thrid party libraries that facilitate reading bar codes as well, some even come with their own bar code scanner.


您可以像这样使用SerialPort ^ ]-有关完整的代码,请参阅第一个修订版.

或者,您可以使用 OPOS或NPos [
You can use the SerialPort like this Barcode scanning[^] - see first revision for complete code.

Or you can use the OPOS or NPos[^] API''s. It''s really quite easy ...

I''ve tried OPOS and obviously scanning barcodes using the serial port. Many Symbol Barcode scanners support OPOS - samples included on Symbol website shows how simple it is.

Regards
Espen Harlinn


大多数条形码扫描仪都充当键盘.这意味着您无需在软件中进行任何处理,只需将输入焦点设置为文本框即可.扫描程序扫描完某些内容后,便会像在某人用键盘键入文本一样,在文本框中输入文本.
Most barcode scanners act as a keyboard. This means you don''t need to handle anything in your software except setting the input focus to a textbox. As soon as the scanner scans something, the text is entered in the textbox the same way as if someone would have typed the text with a keyboard.


这篇关于条形码扫描如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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