I have an image with a QR barcode in it. My phone can read the barcode, but the BarCodeReader cannot. I will attach the file - testcop.png (203.3 KB)
I am using the C# DLL 18.7.0.0. Here is my code (I have tried many different manual hints and quality levels):
public List<string> GetBarcodesFromImage(System.Drawing.Image image)
{
var licfilePath = HttpContext.Current.Server.MapPath("~/Resources/Aspose.BarCode.lic");
License l = new License();
l.SetLicense(licfilePath);
System.Drawing.Bitmap bmp = (System.Drawing.Bitmap)image;
List<string> barcodes = new List<string>();
//using (Aspose.BarCodeRecognition.BarCodeReader barReader = new Aspose.BarCodeRecognition.BarCodeReader(bmp))
using (Aspose.BarCode.BarCodeRecognition.BarCodeReader barReader = new Aspose.BarCode.BarCodeRecognition.BarCodeReader(bmp, Aspose.BarCode.BarCodeRecognition.DecodeType.QR))
{
barReader.RecognitionMode = Aspose.BarCode.BarCodeRecognition.RecognitionMode.MaxBarCodes;
//barReader.ManualHints = Aspose.BarCode.BarCodeRecognition.ManualHint.UseRestoration;
while (barReader.Read())
{
string code = barReader.GetCodeText();
barcodes.Add(code);
}
}
return barcodes;
}