C# zxing 端口问题
首先请原谅我的英语不好,然后我想问你一个建议来解决这个问题。我正在尝试使用 zxing C# 端口。
然后我尝试解析此图像:
条形码 http://img168.imageshack.us/ zxing.org 上的img168/2633/0003gby.jpg
识别了它。
我编写的小程序反而产生了 ReaderException。
有什么想法,或者有人编写了一段可以完成这项工作的代码吗?
first excuse me for the bad english, then i wanna ask you a piece of advice to solve this problem. I'm trying to use zxing C# port.
I tried then to parse this image:
bar code http://img168.imageshack.us/img168/2633/0003gby.jpg
at zxing.org which recognized it.
The little program I wrote, instead produced a ReaderException.
Any ideas, or anybody who wrote a piece of code which does the job?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我意识到这有点老了,但我刚刚第一次尝试使用 ZXing 的 C# 端口,我发现我必须使用 TRY_HARDER DecodeHintType 来读取条形码。
在代码中,看起来它期望提供的图像是条形码本身周围的区域,因此它开始在中间查找。设置 TRY_HARDER 标志会使其搜索整个页面。
I realize this is a bit old, but I've just tried using ZXing's C# port for the first time, and I've found that I have to use the TRY_HARDER DecodeHintType to get the barcode to read.
In the code, it looks like it's expecting the image provided to be a region around the barcode itself, so it starts looking in the middle. Setting the TRY_HARDER flag makes it search the entire page.