从温江到高升桥地铁到手机城坐地铁坐几站

2013年3月 总版技术专家分月排行榜第二
2014年2月 Java大版内专家分月排行榜第一2013年8月 Java大版内专家分月排行榜第一2013年5月 Java大版内专家分月排行榜第一2013年4月 Java大版内专家分月排行榜第一2013年3月 Java大版内专家分月排行榜第一2013年2月 Java大版内专家分月排行榜第一
本帖子已过去太久远了,不再提供回复功能。帮助企业打造成功软件!
热门搜索:
BarCode Reader SDK使用教程:如何从图像中读取条码
BarCode Reader SDK使用教程:如何从图像中读取条码
| 作者: |
14:54:29| 阅读 0次
概述:在BarCode Reader SDK中用VB.NET或者C#来读取图像中的条码
我们知道很多语言都可以在windows平台上读取条码,今天将分享在BarCode Reader SDK中如何用VB.NET或者C#来读取图像中的条码。
这段代码演示了如何从图像中读取条码及打印到输出控制台。
Visual Basic .NET:
Imports System.IO
Imports Bytescout.BarCodeReader ' requiring to install evaluation or full version of Barcode Reader SDK
&em&Module &font class=&Apple-style-span& color=&#000000&&&span data-scayt_word=&Module1& data-scaytid=&1&&Module1&/span&&/font&&/em&
Sub Main()
Dim pat As String = &InputPhoto.jpg&
Console.WriteLine(&Reading barcode(s) from image {0}&, Path.GetFullPath(pat))
Dim &span data-scayt_word=&bc& data-scaytid=&2&&bc&/span& As New Reader()
bc.TypeToFind = SymbologyFilter.FindAll
Dim barcodes As &span data-scayt_word=&FoundBarcode& data-scaytid=&3&&FoundBarcode&/span&() = bc.ReadFrom(pat)
Dim i As Integer
For i = 0 To barcodes.Length - 1
Console.WriteLine(&Found barcode with type '{0}' and value '{1}'&, barcodes(i).Type, barcodes(i).Value)
Console.WriteLine(&Press any key to exit..&)
Console.ReadKey()
End Module
using System.Collections.G
using System.T
using System.IO;
using Bytescout.BarCodeR // requires to have evaluation or full version of Barcode Reader SDK installed
&span data-scayt_word=&namespace& data-scaytid=&6&&namespace&/span& &span data-scayt_word=&SimpleTestSharp& data-scaytid=&7&&SimpleTestSharp&/span&
class Program
&span data-scayt_word=&const& data-scaytid=&8&&const&/span& string path = &&span data-scayt_word=&InputBarcodeImagejpg& data-scaytid=&9&&InputBarcodeImagejpg&/span&&;
static void Main(string[] &span data-scayt_word=&args& data-scaytid=&60&&args&/span&)
Console.WriteLine(&Reading barcode(s) from image {0}&, Path.GetFullPath(path));
Reader &span data-scayt_word=&bc& data-scaytid=&13&&bc&/span& = new Reader();
&span data-scayt_word=&FoundBarcode& data-scaytid=&14&&FoundBarcode&/span&[] barcodes = bc.ReadFrom(path);
&span data-scayt_word=&foreach& data-scaytid=&18&&foreach&/span& (&span data-scayt_word=&FoundBarcode& data-scaytid=&17&&FoundBarcode&/span& barcode in barcodes)
Console.WriteLine(&Found barcode with type '{0}' and value '{1}'&, barcode.Type, barcode.Value);
Console.WriteLine(&Press any key to exit..&);
Console.ReadKey();
慧都控件|提供软件技术整体解决方案
云集全球三千余款优秀控件、软件产品,提供行业领先的咨询、培训与开发服务
企业QQ:|电话:023-
服务与支持
重庆 / 023-
北京 / 010-
400-700-1020
慧都旗下网站
慧都科技有限公司 版权所有 Copyright
渝ICP备号 |
京公网安备 19号
100%正版软件
400-700-1020
<input type="hidden" id="url" value=""/>10:32 提问
困惑啊!!用zxing读取图片当中的条形码
请教个问题:一张图片当中在不固定位置包含有条形码,怎么读取条形码出来呢?怎么读取一张图片中的多个条形码?用zxing读取图片当中的条形码,报错com.google.zxing.NotFoundException。有大神知道的吗?谢谢
按赞数排序
设置一下TryHarder和PossibleFormats看一下
public static List&string& ScanForBarcodes(string path)
return ScanForBarcodes(new Bitmap(path));
public static List&string& ScanForBarcodes(Bitmap bitmap)
// initialize a new Barcode reader.
BarcodeReader reader = new BarcodeReader
TryHarder = true, // TryHarder is slower but recognizes more Barcodes
PossibleFormats = new List&BarcodeFormat& // in the ZXing There is an Enum where all supported barcodeFormats were contained
BarcodeFormat.CODE_128,
BarcodeFormat.QR_CODE,
//BarcodeFormat. ... ;
return reader.DecodeMultiple(bitmap).Select(result =& result.Text).ToList(); // return only the barcode string.
// If you want the full Result use: return reader.DecodeMultiple(bitmap);
谢谢,设置了TryHarder,好了。膜拜大神!
其他相似问题条形码的识别图像处理报告_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
条形码的识别图像处理报告
上传于|0|0|暂无简介
阅读已结束,如果下载本文需要使用1下载券
想免费下载本文?
定制HR最喜欢的简历
下载文档到电脑,查找使用更方便
还剩21页未读,继续阅读
定制HR最喜欢的简历
你可能喜欢

我要回帖

更多关于 温江到高升桥地铁 的文章

 

随机推荐