I am trying to read the QRCode from the attached image. My handheld can read it from the monitor when I open the image with paint, so I know the QRCode works. I have 1,200 images to read, and this one seems to always fail. Suggestions on how I can make this QRcode Read?
Sample Code I am using...
Dim start_time As DateTime
Dim stop_time As DateTime
Dim elapsed_time As TimeSpan
'Load the file into memeory
For Each strFile In fileEntries
Dim thisBitmap As New Bitmap(strFile)
'Dim result = readCode.Decode(Bitmap)
start_time = Now
Dim rdr As New Aspose.BarCodeRecognition.BarCodeReader(thisBitmap, Aspose.BarCodeRecognition.BarCodeReadType.QR)
If rdr.Read() Then
stop_time = Now
elapsed_time = stop_time.Subtract(start_time)
Debug.Print(rdr.GetCodeText & " " & rdr.GetReadType & " " & strFile & " " & elapsed_time.TotalSeconds.ToString("0.000000"))
'Copy file Over to new name
System.IO.File.Copy(strFile, strDest & rdr.GetCodeText & ".jpg")
Else
stop_time = Now
elapsed_time = stop_time.Subtract(start_time)
intFailCount += 1
Debug.Print("Failed " & strFile & " " & elapsed_time.TotalSeconds.ToString("0.000000"))
End If
rdr.Close()
Dim start_time As DateTime
Dim stop_time As DateTime
Dim elapsed_time As TimeSpan
'Load the file into memeory
For Each strFile In fileEntries
Dim thisBitmap As New Bitmap(strFile)
'Dim result = readCode.Decode(Bitmap)
start_time = Now
Dim rdr As New Aspose.BarCodeRecognition.BarCodeReader(thisBitmap, Aspose.BarCodeRecognition.BarCodeReadType.QR)
If rdr.Read() Then
stop_time = Now
elapsed_time = stop_time.Subtract(start_time)
Debug.Print(rdr.GetCodeText & " " & rdr.GetReadType & " " & strFile & " " & elapsed_time.TotalSeconds.ToString("0.000000"))
'Copy file Over to new name
System.IO.File.Copy(strFile, strDest & rdr.GetCodeText & ".jpg")
Else
stop_time = Now
elapsed_time = stop_time.Subtract(start_time)
intFailCount += 1
Debug.Print("Failed " & strFile & " " & elapsed_time.TotalSeconds.ToString("0.000000"))
End If
rdr.Close()