We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose.BarCode for .NET识别速度是否有优化的空间

目前我正在使用Aspose.BarCode for .NET进行二维码识别,以下是识别示例测试文件.zip (328.9 KB)
,识别效率是4s,您方便测试一下,看下您那边能提高下识别速度吗?

@chenxf,
您可以尝试以下示例代码,该过程大约需要700毫秒才能完成操作。请尝试一下并分享反馈。

Stopwatch watch = new Stopwatch();
watch.Start();

BarCodeReader barCodeReader = new BarCodeReader(@"测试文件.jpg", DecodeType.QR);
string codeText = string.Empty;
BarCodeResult[] barCodeResults = barCodeReader.ReadBarCodes();
foreach (var item in barCodeResults)
{
    Console.WriteLine(item.CodeText);
}
Console.WriteLine($"Finished: {watch.ElapsedMilliseconds}");
watch.Stop();