internal ImageRecognitionEngine( IImageFileTypeRecognizer recognizer, IImageFileStorage storage, IRecognitionJobFactory recognitionJobFactory, IRecognitionJobQueue recognitionJobQueue, ITesseractEngineFactory tesseractFactory, IPreprocessorFactory preprocessorFactory) { _recognizer = recognizer ?? throw new ArgumentNullException(nameof(recognizer)); _storage = storage ?? throw new ArgumentNullException(nameof(storage)); _jobFactory = recognitionJobFactory ?? throw new ArgumentNullException(nameof(recognitionJobFactory)); _jobQueue = recognitionJobQueue ?? throw new ArgumentNullException(nameof(recognitionJobQueue)); _tesseractFactory = tesseractFactory ?? throw new ArgumentNullException(nameof(tesseractFactory)); _preprocessorFactory = preprocessorFactory ?? throw new ArgumentNullException(nameof(preprocessorFactory)); }
public void TestInitialize() { _factory = new PreprocessorFactory(); }