Пример #1
0
 public BarcodeDecoder(IOptions <BarcodeConfig> optionsAccessor, IBitmapReader bitmapReader)
 {
     _config       = optionsAccessor.Value;
     _bitmapReader = bitmapReader;
     barcodeReader = new ZXing.BarcodeReader
     {
         AutoRotate  = true,
         TryInverted = true,
         Options     = new DecodingOptions
         {
             TryHarder       = true,
             PossibleFormats = _config.PossibleFormats
         }
     };
     results = new List <DecodeResult>();
 }
Пример #2
0
 public BarcodeManager(IOptions <ProcessingConfig> options, IBitmapReader bitmapReader)
 {
     _config       = options.Value;
     _bitmapReader = bitmapReader;
 }