[sikuli] 125/385: Tesseract wasn't configured correctly: - train data wasn't extracted onto disk - location of directory with train data wasn't passed to Tesseract
Gilles Filippini
pini at moszumanska.debian.org
Sun Jun 29 19:25:58 UTC 2014
This is an automated email from the git hooks/post-receive script.
pini pushed a commit to tag upstream/1.1.0_beta1
in repository sikuli.
commit b606b5fa494f6240a512f786ec91f0415e49da25
Author: Ireneusz Matysiewicz <iirekm at gmail.com>
Date: Mon Jan 6 18:03:40 2014 +0100
Tesseract wasn't configured correctly:
- train data wasn't extracted onto disk
- location of directory with train data wasn't passed to Tesseract
---
API/src/main/java/org/sikuli/script/Finder.java | 1 +
Basics/src/main/java/org/sikuli/basics/ResourceLoader.java | 1 +
2 files changed, 2 insertions(+)
diff --git a/API/src/main/java/org/sikuli/script/Finder.java b/API/src/main/java/org/sikuli/script/Finder.java
index 259ab07..7037aaf 100755
--- a/API/src/main/java/org/sikuli/script/Finder.java
+++ b/API/src/main/java/org/sikuli/script/Finder.java
@@ -31,6 +31,7 @@ public class Finder implements Iterator<Match> {
//TODO Vision.setParameter("GPU", 1);
static {
FileManager.loadLibrary("VisionProxy");
+ new TextRecognizer(){}.init();
}
/**
diff --git a/Basics/src/main/java/org/sikuli/basics/ResourceLoader.java b/Basics/src/main/java/org/sikuli/basics/ResourceLoader.java
index 7f18cc0..b997d8e 100755
--- a/Basics/src/main/java/org/sikuli/basics/ResourceLoader.java
+++ b/Basics/src/main/java/org/sikuli/basics/ResourceLoader.java
@@ -431,6 +431,7 @@ public class ResourceLoader implements IResourceLoader {
} else {
Settings.OcrDataPath = "/usr/local/share";
}
+ doSomethingSpecial("exportTessdata", new String[]{});
log(lvl, "If OCR/Text activated: Using as OCR directory (tessdata): " + Settings.OcrDataPath);
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/sikuli.git
More information about the pkg-java-commits
mailing list