Example #1
0
        public void Setup()
        {
            string tessdataPath = Path.Combine(TestContext.CurrentContext.TestDirectory, "..", "..", "..", "tools", "tessdata");

            _engine = new TesseractEngine(
                tessdataPath,
                "eng",
                EngineMode.CubeOnly);

            _distance = new DamerauLevenshteinDistance();
        }
Example #2
0
        public void Setup()
        {
            // download from https://yadi.sk/d/f1HuKUg7xW2FUQ/tools?w=1
            var tessdataPath = DevPaths.MtgToolsDir.Join("tessdata");

            _engine = new TesseractEngine(
                tessdataPath.Value,
                "eng",
                EngineMode.CubeOnly);

            _distance = new DamerauLevenshteinDistance();
        }
Example #3
0
        public void Setup()
        {
            LoadCards();

            ImgRepo.LoadFiles();
            ImgRepo.LoadZoom();

            string tessdataPath = TestContext.CurrentContext.TestDirectory.AddPath(@"..\..\..\tools\tessdata");

            _engine = new TesseractEngine(
                tessdataPath,
                "eng",
                EngineMode.CubeOnly);

            _distance = new DamerauLevenshteinDistance();
        }