如何编写程序以从设备读取条形码 [英] How to code a program to read barcode from device

查看:171
本文介绍了如何编写程序以从设备读取条形码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我想编写一个程序来读取设备中的条形码,或者说我要为使用条形码读取器的商店编写程序,如何开始,请给我个主意....

hi everyone,
I want to write a program to read a barcode from device, or say m going to write a program for a shop who use barcode reader, how to start with, plz give me idea....

推荐答案

这是两个不同的任务,您可以编写代码以使用相机拍摄照片并计算出值,或者购买条形码阅读器,然后使用其提供的任何接口来获取密码.价值观.首先,您需要确定要查找的库才能执行此操作;第二,您需要阅读条形码阅读器随附的手册.
These are two different tasks, you can either write code to use a camera to take a photo and work out the values, or buy a barcode reader, and then use whatever interface it offers to get the values. You need to decide which, in the first instance, you have to look for libraries to do this, in the second, you need to read the manual that comes with your barcode reader.


常规条形码读取器仅充当键盘.这意味着,您需要在应用程序中提供一个输入字段,并且在扫描内容后立即将值输入到具有焦点的输入字段中.有关更多信息,请参见本文:
在.NET中使用条形码扫描仪 [ ^ ]
Normal barcode readers just act as a keyboard. This means, that you need to provide a input field in your application and as soon as something is scanned, the value is entered into the input field that has the focus. See this article for some additional information:
Using a bar code scanner in .NET[^]


无需编写它扫描的任何代码即可自动将其写入文本框.如果您无法扫描,只是检查是否已使用正确的编码生成条形码?
not necessary to write any code it scans automatically write in to text box. if you are fail to scan just check barcode have been generated with proper encoding or not?


这篇关于如何编写程序以从设备读取条形码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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