Problems with BarCode Recognition

Hi,

I'm evaluating Pdf.Kit and BarCodeRecognition. With the attached Pdf I'm not able to recognise all of the codes (some are not found, some give the wrong values).

Could you please tell me what to do? Below you find the code I use (copies from this forum).

Thanks, Stefan

---

string _FileName = @"c:\barcodes.pdf";
string _FileNameBmp = @"c:\barcode.bmp";

// bind the pdf
PdfExtractor extractor = new PdfExtractor();
extractor.BindPdf(_FileName);
// set page range for image extraction
extractor.StartPage = 1;
extractor.EndPage = 10;
// extract the images
Console.WriteLine("Extracting images.....");
extractor.ExtractImage();
DateTime dtEndTime = DateTime.Now;
int i = 1;
// save images to stream in a loop
while (extractor.HasNextImage())
{
Console.WriteLine("Getting next image....");
var dtStartTime = DateTime.Now;
// save to stream
extractor.GetNextImage(_FileNameBmp);

Console.WriteLine("Recognizing barcode....");
// recognize the barcode from the image stream above
BarCodeReader reader = new BarCodeReader(_FileNameBmp, BarCodeReadType.AllSupportedTypes);
reader.SetHints(RecognitionHints.ImageBinarizationHints.MedianSmoothing);
while (reader.Read())
{
Console.WriteLine(" == Codetext: " + reader.GetCodeText());
}
reader.Close();
}

Hi Stefan,


Thanks for your inquiry.

We will look into it and will get back to you soon. Sorry for the inconvenience.

The issues you have found earlier (filed as BARCODENET-19264) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.