public ProcessInterface(char deliminatorChar, List <string> priorityList, string sourceFolder, string destFolder, string pathToDict)
 {
     _sourceFolder = sourceFolder;
     _destFolder   = destFolder;
     _idTranslator = new IdTranslator(pathToDict);
     _imageScanner = new ImageScanner(deliminatorChar, _idTranslator);
     _fileMover    = new FileMover(priorityList);
 }
Exemple #2
0
        // private BarcodeReader _myBarcodeReader;
        // private BarcodeReader _myBarcodeReader2;
        // private BarcodeReader _myBarcodeReader3;

        public ImageScanner(char stringDelimiter, IdTranslator idParser)
        {
            _idParser = idParser;
            _myHints  = new Dictionary <DecodeHintType, object>();
            _myHints.Add(DecodeHintType.TRY_HARDER, true);
            _stringDelimiter = stringDelimiter;
            // _myQrReader = new QRCodeMultiReader();
            _myQrSingleReader = new QRCodeReader();
            // _myBarcodeReader = new BarcodeReader(null, bitmap => new BitmapLuminanceSource(bitmap), luminance => new GlobalHistogramBinarizer(luminance)) { AutoRotate = true, Options = new DecodingOptions { TryHarder = true, PossibleFormats = new List<BarcodeFormat>{BarcodeFormat.QR_CODE} }, TryInverted = true };
            // _myBarcodeReader2 = new BarcodeReader(null, bitmap => new BitmapLuminanceSource(bitmap), luminance => new GlobalHistogramBinarizer(luminance)) { AutoRotate = true, Options = new DecodingOptions {TryHarder = true, PossibleFormats = new List<BarcodeFormat> {BarcodeFormat.CODE_128}}, TryInverted = true };
            // _myBarcodeReader3 = new BarcodeReader {AutoRotate = true, Options = new DecodingOptions {TryHarder = true, PossibleFormats = new List<BarcodeFormat> {BarcodeFormat.CODE_128}}, TryInverted = true};
        }