Hello,
Thanks for your inquiry!
Kindly note that the barcode in your image file is a QR code, not a MicroQR code. If you specify to scan a MicroQR code, the program will not recognize it and took lots of time.
Here are two methods to improve the speed of scanning:
First, do not specify the code type. I test
Dim strData = Spire.Barcode.BarcodeScanner.Scan(strImageFile) to scan with the latest version of
Spire.Barcode version 6.1.0, and it takes 30 seconds to scan the data.
Or you can specify the code type to QR with
Dim strData = Spire.Barcode.BarcodeScanner.Scan(strImageFile, BarCodeType.QRCode). It only takes less than one second to scan the data with the latest version.
Also, you can refer to the following code to analyze the type and data of the Barcode.
- Code: Select all
Dim strImageFile = "E:\testdoc\samplefiles\samplefiles\Page0\Page0.jpg"
Dim info = BarcodeScanner.ScanInfo(strImageFile)
For i As Integer = 0 To info.Length - 1
Console.WriteLine("data:" + info(i).DataString + " Type:" + info(i).BarCodeReadType.ToString())
Next
Type&Data.png
If you have any other questions, just feel free to contact us.
Sincerely,
Marcia
E-iceblue support team
Login to view the files attached to this post.