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.

Thu Nov 20, 2014 10:30 pm

Is there anyway to improve the performance? I tried using the rectangle parameter, and the difference is almost negligible. Right now, it takes at least 60 seconds to scan 2 barcodes in a rectangle 1000 points tall, by 5000 points wide (width of a letter size piece of paper).

laurin1
 
Posts: 21
Joined: Wed Nov 19, 2014 9:37 pm

Fri Nov 21, 2014 7:23 am

Dear laurin1,

Thanks for your inquiry.

Please send us the barcode image and your code about how to scan barcodes to burning.liu@e-iceblue.com or support@e-iceblue.com.

Best Regards,
Burning
E-iceblue Support Team
Best Regards,
Burning
E-iceblue Support Team
User avatar

burning.liu
 
Posts: 406
Joined: Mon Aug 04, 2014 6:47 am

Fri Nov 21, 2014 7:10 pm

I have no idea why, but today they are much faster. Still slow compared to our old library - about 25 seconds per page scanned for barcodes (our old library, which was a pure C# class in the project, ran in about a second.)

laurin1
 
Posts: 21
Joined: Wed Nov 19, 2014 9:37 pm

Mon Nov 24, 2014 3:09 am

Dear laurin1,

I'm glad to hear that they are much faster than before. To help us reproduce this performance problem, would you please send us the barcode image and code snippets about how to scan barcodes?
Thank you.

Best Regards,
Burning
E-iceblue Support Team
Best Regards,
Burning
E-iceblue Support Team
User avatar

burning.liu
 
Posts: 406
Joined: Mon Aug 04, 2014 6:47 am

Mon Nov 24, 2014 1:39 pm

Code: Select all
         string sTifPathFile =
            Directory.GetParent(
               Directory.GetParent(Environment.CurrentDirectory).ToString()) +
            "\\TestData\\" + sTifFile;
         Bitmap bmpImage = new Bitmap(sTifPathFile);
         string[] aBarcodes = BarcodeScanner.Scan(bmpTifFile, BarCodeType.Code128);
         bmpImage.Dispose();




test01.zip

laurin1
 
Posts: 21
Joined: Wed Nov 19, 2014 9:37 pm

Tue Nov 25, 2014 2:09 am

Dear laurin1,

Thanks for sharing your code and picture.

I tested with your picture, it took about 30s to recognize the barcode on the top right. The reason why it takes so long is your picture is too large in size and it contains many other contents except for barcode.

Therefore, I recommend you to resize the picture so that it contains only barcode, which takes 40ms to recognize the barcode on my machine. You can try it.

Best Regards,
Burning
E-iceblue Support Team
Best Regards,
Burning
E-iceblue Support Team
User avatar

burning.liu
 
Posts: 406
Joined: Mon Aug 04, 2014 6:47 am

Tue Nov 25, 2014 2:55 am

I'm not sure what you mean by "resize the picture so that it contains only barcode" - you mean the text below the barcode. The problem is that if there is a failure, a human has to read the data and enter it manually. However, I did remove the text and it still takes 30 seconds.

laurin1
 
Posts: 21
Joined: Wed Nov 19, 2014 9:37 pm

Tue Nov 25, 2014 3:50 am

Ok, so the problem seemed to be having the barcodes on the same line, because removing the text and making the barcodes smaller did not make it faster for me, nor more accurate (less, actually). However, when I made them slightly smaller and moved the barcodes to be one underneath the other and put the text to the right instead of underneath, it seems to be much faster and more accurate. We'll test in production tomorrow.

May have solved this problem as well: read-accuracy-problems-t5089.html

laurin1
 
Posts: 21
Joined: Wed Nov 19, 2014 9:37 pm

Mon Apr 18, 2016 6:38 pm

I would like to pickup this old post to ask for the normal scan time of an document.
my first test takes about 30sec.!!!
Is it normal?

in my coding, i have not defined the code to read.

my code looks like this:
Code: Select all
 string sTifPathFile = @"c:\demo\test.tiff"
         Bitmap bmpImage = new Bitmap(sTifPathFile);
         string[] aBarcodes = BarcodeScanner.Scan(bmpTifFile);
         bmpImage.Dispose();


is there some optimizing potential?

stein.stephan@gmx.de
 
Posts: 16
Joined: Sun Jan 17, 2016 12:10 pm

Tue Apr 19, 2016 3:22 am

Hi,

Thanks for your inquiry.
Could you please provide the tiff document to help us for investigation?

Thank you.
Caroline
E-iceblue support team
User avatar

caroline.zhang
 
Posts: 291
Joined: Mon Mar 07, 2016 9:22 am

Tue Apr 19, 2016 11:24 am

stein.stephan@gmx.de wrote:I would like to pickup this old post to ask for the normal scan time of an document.
my first test takes about 30sec.!!!
Is it normal?

in my coding, i have not defined the code to read.

my code looks like this:
Code: Select all
 string sTifPathFile = @"c:\demo\test.tiff"
         Bitmap bmpImage = new Bitmap(sTifPathFile);
         string[] aBarcodes = BarcodeScanner.Scan(bmpTifFile);
         bmpImage.Dispose();


is there some optimizing potential?


Do you have multiple barcodes on the line (horizontally)?

laurin1
 
Posts: 21
Joined: Wed Nov 19, 2014 9:37 pm

Wed Apr 20, 2016 8:40 am

Hi,

Barcode resolution will affect the scanning time. We recommend you to scan high resolution barcode image which only contains barcode data. I tested an image contained two barcodes on same horizontal line, and it only took about 1s.

Sincerely,
Caroline
E-iceblue support team
User avatar

caroline.zhang
 
Posts: 291
Joined: Mon Mar 07, 2016 9:22 am

Wed Apr 20, 2016 3:28 pm

caroline.zhang wrote:Hi,

Barcode resolution will affect the scanning time. We recommend you to scan high resolution barcode image which only contains barcode data. I tested an image contained two barcodes on same horizontal line, and it only took about 1s.

Sincerely,
Caroline
E-iceblue support team


Well, that was not our experience. Just to be clear, though, we tried higher resolution barcodes and those did not help in the slightest, but made our documents way too large.

laurin1
 
Posts: 21
Joined: Wed Nov 19, 2014 9:37 pm

Thu Apr 21, 2016 7:06 am

Hello,

Thanks for your response.
If you can share with us your document for investigation, that’s better. Sorry for the inconvenience that the issue brought to you.
Could you please send your document to our email (support@e-iceblue.com)?
Thank you very much.

Best Regards,
Caroline
E-iceblue support team
User avatar

caroline.zhang
 
Posts: 291
Joined: Mon Mar 07, 2016 9:22 am

Return to Spire.BarCode