public FormReader(FormReaderOptions options) { this.Options = options; this.Preprocessor = new ImagePreprocessor(options.InputFile); // Debug image. this.Painter = options.GenerateDebugImage ? new Painter(this.Preprocessor.imgHeight, this.Preprocessor.imgWidth) : null; this.Logger = options.Verbose ? new Logger(options) : null; }
private static void Run(FormReaderOptions opts) { var openFieldReader = new FormReader(opts); openFieldReader.Process(); }