Пример #1
0
 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));
 }
Пример #2
0
 public void TestInitialize()
 {
     _factory = new PreprocessorFactory();
 }
Пример #3
0
 public void TestInitialize()
 {
     _factory = new PreprocessorFactory();
 }