Spire.Barcode is a professional barcode library specially designed for .NET developers (C#, VB.NET, ASP.NET, .NET Core) and Java developers (J2SE and J2EE) to generate, read and scan 1D & 2D barcodes.

Mon Feb 08, 2016 10:41 am

Hello.
I have installed barcode sdk via Nuget package and I am getting some incorrect results with it. Here is the code:

Code: Select all
 var codes = BarcodeScanner.Scan(v.Image, BarCodeType.EAN13);
 v.BarCode = codes != null && codes.Length > 0 ? codes[0] : null;


And here is the picture: https://drive.google.com/open?id=0B8lVo ... EJ1a0VNbTA

And here is generated barcode: 510011174522
This is completely incorrect. On other pictures like: https://drive.google.com/open?id=0B8lVo ... 2FYMWpoRUE

it generates code: 9822345123400
so last digit missing on all ean-13 codes.

gion
 
Posts: 2
Joined: Mon Feb 08, 2016 10:13 am

Tue Feb 09, 2016 7:10 am

Hi,

Thanks for your posting.
The barcode in your picture is blurry. Please scan clear barcode. The better is that your picture only includes barcode information.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Wed Feb 10, 2016 2:59 pm

amy.zhao, thank you for the reply. I have tried with this picture which seems to be of more quality, but still the last digit missing. I have tried another SDK`s and they work. Here is the picture: https://drive.google.com/file/d/0B8lVoj ... sp=sharing

Can you please verify?

gion
 
Posts: 2
Joined: Mon Feb 08, 2016 10:13 am

Thu Feb 11, 2016 10:19 am

Hello,

Please try to use following code:
Code: Select all
string[] datas = BarcodeScanner.Scan(@"image0311.jpg", true);


Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Return to Spire.BarCode