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>(); }
public BarcodeManager(IOptions <ProcessingConfig> options, IBitmapReader bitmapReader) { _config = options.Value; _bitmapReader = bitmapReader; }