Esempio n. 1
0
 public void Batch()
 {
     foreach (var bitmap in Directory.EnumerateFiles("Batch").Select(GetBitmap))
     {
         var sut         = new MessagingToolkitZoneBasedBarcodeReader();
         var recognition = sut.Recognize(bitmap, ZoneConfiguration.FromSingleImage(bitmap, new AlphanumericStringFilter(), Symbology.Barcode));
         foreach (var recognitionResult in recognition)
         {
             output.WriteLine(recognitionResult.Text ?? "{Empty result}");
         }
     }
 }
Esempio n. 2
0
 public void Batch()
 {
     foreach (var bitmap in Directory.EnumerateFiles("Batch").Select(GetBitmap))
     {
         var sut = new MessagingToolkitZoneBasedBarcodeReader();
         var recognition = sut.Recognize(bitmap, ZoneConfiguration.FromSingleImage(bitmap, new AlphanumericStringFilter(), Symbology.Barcode));
         foreach (var recognitionResult in recognition)
         {
             output.WriteLine(recognitionResult.Text ?? "{Empty result}");
         }
     }
 }