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.