protected internal static AbstractTesseract4OcrEngine GetTesseractReader(IntegrationTestHelper.ReaderType type) { if (type.Equals(IntegrationTestHelper.ReaderType.LIB)) { return(tesseractLibReader); } else { return(tesseractExecutableReader); } }
public UserWordsTest(IntegrationTestHelper.ReaderType type) { isExecutableReaderType = type.Equals(IntegrationTestHelper.ReaderType.EXECUTABLE); if (isExecutableReaderType) { testFileTypeName = "executable"; } else { testFileTypeName = "lib"; } tesseractReader = GetTesseractReader(type); }