Barcode reader performance problem

Hello,
I have problem with performance of Reading barcodes. I have 3 barcodes in screen without any text on it. It takes about 4s. IF i deploy it by docker image on k8s i takes 12s. I checked also another lib and i lt takes about 0.2s on local machine and 0.7s on k8s

@PiotrekA,

Could you please zip and attach sample barcode image and paste your sample (runnable) code that you are using. We will check your issue soon.

I use code from this page:

In my case in DecodeTypes is DecodeType.Code39, DecodeType.Code128
test.jpg (173,1 KB)

@PiotrekA,

Thanks for the barcode image.

I tested your scenario/case using your provided barcode image and following sample code, it works fine and as expected. It takes around 1 second to retrieve the barcodes from the image which is reasonable. Even you may try to set QualitySettings which will further minimize the timing.
e.g.,
Sample code:

var sw = System.Diagnostics.Stopwatch.StartNew();
using (BarCodeReader reader = new BarCodeReader("e:\\test2\\test.jpg", DecodeType.Code39, DecodeType.Code128))
{
    reader.QualitySettings = QualitySettings.HighPerformance;
    foreach (BarCodeResult result in reader.ReadBarCodes())
        Console.WriteLine($"{result.CodeTypeName}:{result.CodeText}");
}
Console.WriteLine(sw.ElapsedMilliseconds);

I am using Aspose.BarCode for .NET v24.8 with a valid license, please try it if you are not using it. Moreover, get a 30 days temporary license as it will minimize time further.

If i used QualitySettings.HighPerformance it just missed some kind of barcodes.

i doubled this code and in the first run it takes above 3 second but in next one is a little above 1 second
Did u try this code on docker image?

I have a valid license too

@PiotrekA,

In high performance quality settings, we concentrate on performance so some poor or incorrect quality barcodes might be missed. I even tested your scenario/case in normal mode using your provided barcode image, it takes just over 1 second to retrieve the barcodes from the image on my system (Windows 11) locally. We will evaluate your in details and check if we could minimize the recognition time further. We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): BARCODENET-39117

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@amjad.sahi

Have you already managed to determine anything regarding the performance of barcode reading? I updated to the latest version 25.12.0 and I’m noticing a drop in performance compared to version 25.3.0 on my sample (10-page PDF) — from 22s to 24s. Unfortunately, I looked around at other barcode reading package providers, and Dynamsoft processed it 5x faster. Could my case be treated as a priority?

@PiotrekA,

We apologize for the inconvenience caused regarding the performance issue. Please rest assured that we are actively working on enhancing the 1D algorithms for barcode reading. By improving the QualitySettings structure of the 1D barcode engine, we are confident it will enhance the performance of barcode reading. We will keep you updated as soon as we have further progress on this matter. Thank you for your patience and understanding.