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 10, 2020 6:51 pm

Hello, I'm testing your Java barcode reader (free version ) before I purchase and I am encountering really bad performance issues. Other decoder apps can perform the same operations in sub second operations.

Test Source.
-----------------------------------------------------------------------------
Code: Select all
import com.spire.barcode.BarcodeScanner;

public class Scan {
    public static void main(String[] args) throws Exception {
        String[] s = BarcodeScanner.scan(args[0]);
        System.out.println(s[0]);

    }
}

-----------------------------------------------------------------------------

Testing Results

Code: Select all
Test 1: 1 page 200dpi tiff   one code3of9 barcode
time java -classpath =.:./Spire.Barcode.jar: Scan ac3768.tif
12237201972683

real    0m26.483s
user    0m22.370s
sys     0m0.351s
-----------------------------------------------------------------------------
Test 2: 1 page 200dpi tiff   one code3of9 barcode
time java -classpath =.:./Spire.Barcode.jar: Scan ac4018.tif
12237123456789

real    0m19.051s
user    0m19.357s
sys     0m0.191s
---------------------------------------------------------------
Test 3: 1 page 200dpi tiff   one code3of9 barcode
time java -classpath =.:./Spire.Barcode.jar: Scan ac4024.tif
12237200459690

real    0m21.424s
user    0m21.776s
sys     0m0.227s
-----------------------------------------------------------------------------
Test 4: 200 pages 200dpi tiff   code128 barcode
time java -classpath =.:./Spire.Barcode.jar: Scan cx1.tif
12237300036554

real    5m52.473s
user    5m51.288s
sys     0m1.181s

** Note: there are barcodes on many pages but it only finds the
**       one listed ont he first page.  The other pages have vertical
**       barcodes where the first page is horizontal.
-----------------------------------------------------------------------------
Test 5: 99 pages 200dpi tiff   code128 barcode
time java -classpath =.:./Spire.Barcode.jar: Scan cx2.tif
12237300038807

real    2m35.565s
user    2m35.278s
sys     0m0.767s

** Note: there are barcodes on many pages but it only finds the
**       one listed ont he first page.  The other pages have vertical
**       barcodes where the first page is horizontal.
---------------------------------------------------------------


I could send you the tiff images but I don't want to upload them to a public forum.

Thank you.

Vince

vdibernardo
 
Posts: 3
Joined: Sun Feb 09, 2020 11:56 pm

Tue Feb 11, 2020 2:32 am

Hi Vince,

Thanks for your inquiry.
To help us investigate further, please provide your input images for further investigation. You could send the file to us(support@e-iceblue.com) via email.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed Feb 12, 2020 3:05 am

Hi,

Thanks for your files via email.
After testing your files with Spire.Barcode for Java Version:2.6.0 and the method BarcodeScanner.scan on my side, the scan times are as below:
ac3768.tif:5435ms
ac4018.tif :5594ms
ac4024.tif:5912ms
cx1.tif:73213ms
cx2.tif:32944ms
And we suggest you add the barcode type if there is only one type barcode on image. And the cx1.tif file will cost 5918ms with the code "BarcodeScanner.scan("cx1.tif", BarCodeType.Code_128)". But for other 4 files, there is no obvious improvement. I have logged the time performance issue in our bug tracking system with the ticket SPIREBARCODE-139.
And I also noticed we only scanned the barcode on the first page of the file cx1.tif and cx2.tif. I have also posted this issue to our Dev team with the ticket SPIREBARCODE-140.
Once there is any update regarding the two issues, we will let you know.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.BarCode