条形码扫描仪的 Java 库?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5605564/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 11:52:28  来源:igfitidea点击:

Java library for Barcode scanner?

javaswingbarcodebarcode-scanner

提问by Sachin Doiphode

Hello I have keyboard wedge type of scanner. Necessary condition for it is that it requires cursor to be set on text field to receive barcode Number. But i want to store scanned barcode number into buffer and used it later.

您好,我有键盘楔型扫描仪。它的必要条件是需要在文本字段上设置光标才能接收条码编号。但我想将扫描的条形码编号存储到缓冲区中并稍后使用。

so is there any java library available which will help me in that aspect ?

那么是否有任何可用的 Java 库可以在这方面帮助我?

Thanks !!!

谢谢 !!!

回答by vanderwyst

I just answered a similar question in depth here, with an example of my implementation (I didn't want to use a keyboard hook because I didn't want to require focus on the program before interpreting a scan).

我刚刚在这里深入回答了一个类似的问题,并给出了一个我的实现示例(我不想使用键盘钩子,因为我不想在解释扫描之前要求专注于程序)。

回答by Nirmal- thInk beYond

回答by moritz

One way is zxing

一种方法是zxing