Very Slow

Technical support for Spire.BarCode.

Moderator: iceblue support

Very Slow

Postby laurin1 » 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: 16
Joined: Wed Nov 19, 2014 9:37 pm

Re: Very Slow

Postby burning.liu » 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: 410
Joined: Mon Aug 04, 2014 6:47 am

Re: Very Slow

Postby laurin1 » 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: 16
Joined: Wed Nov 19, 2014 9:37 pm

Re: Very Slow

Postby burning.liu » 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: 410
Joined: Mon Aug 04, 2014 6:47 am

Re: Very Slow

Postby laurin1 » 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
You do not have the required permissions to view the files attached to this post.
laurin1
 
Posts: 16
Joined: Wed Nov 19, 2014 9:37 pm

Re: Very Slow

Postby burning.liu » 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: 410
Joined: Mon Aug 04, 2014 6:47 am

Re: Very Slow

Postby laurin1 » 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: 16
Joined: Wed Nov 19, 2014 9:37 pm

Re: Very Slow

Postby laurin1 » 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: 16
Joined: Wed Nov 19, 2014 9:37 pm

Re: Very Slow

Postby stein.stephan@gmx.de » 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: 14
Joined: Sun Jan 17, 2016 12:10 pm

Re: Very Slow

Postby caroline.zhang » 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: 295
Joined: Mon Mar 07, 2016 9:22 am

Re: Very Slow

Postby laurin1 » 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: 16
Joined: Wed Nov 19, 2014 9:37 pm

Re: Very Slow

Postby caroline.zhang » 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: 295
Joined: Mon Mar 07, 2016 9:22 am

Re: Very Slow

Postby laurin1 » 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: 16
Joined: Wed Nov 19, 2014 9:37 pm

Re: Very Slow

Postby caroline.zhang » 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: 295
Joined: Mon Mar 07, 2016 9:22 am


Return to Spire.BarCode

Who is online

Users browsing this forum: No registered users and 0 guests

cron