c# zxing条形码设置密度_C# 中 ZXing.Net 怎样突破 条形码 多识别 数量限制

DecodeMultiple 方法最多只能识别 6个 条形码?

代码:如下

//1设置读取条形码的规格

DecodingOptions decoding = new DecodingOptions();

decoding.PossibleFormats = new List()

{

//BarcodeFormat.EAN_13

BarcodeFormat.All_1D

};//指定读取的格式

//2.进行读取操作

BarcodeReader br = new BarcodeReader();

br.Options = decoding;//指定规格

//Result result = br.Decode(pictureBox1.Image as Bitmap);//进行读取条形码数字

//Image image1 =Image.FromFile("C:\\Users\\ICC\\Desktop\\333.jpg");

Image image1 = Image.FromFile("C:\\Users\\ICC\\Desktop\\IMG5.png");

Result [] result=br.DecodeMultiple(image1 as Bitmap);

if (result == null)

{

label1.Text = "读取失败";

MessageBox.Show("读取失败");

}

else

{

label1.Text = "";

for(int i = 0; i < result.Length; i++)

{

label1.Text +=" :" +result[i].Text;

}

//MessageBox.Show("读取成功,内容:" + result[0].Text);

}

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值