コード例 #1
0
 protected internal static AbstractTesseract4OcrEngine GetTesseractReader(IntegrationTestHelper.ReaderType
                                                                          type)
 {
     if (type.Equals(IntegrationTestHelper.ReaderType.LIB))
     {
         return(tesseractLibReader);
     }
     else
     {
         return(tesseractExecutableReader);
     }
 }
コード例 #2
0
 public UserWordsTest(IntegrationTestHelper.ReaderType type)
 {
     isExecutableReaderType = type.Equals(IntegrationTestHelper.ReaderType.EXECUTABLE);
     if (isExecutableReaderType)
     {
         testFileTypeName = "executable";
     }
     else
     {
         testFileTypeName = "lib";
     }
     tesseractReader = GetTesseractReader(type);
 }