diff options
author | 2015-04-10 14:50:24 +0200 | |
---|---|---|
committer | 2015-04-10 14:50:24 +0200 | |
commit | c12cb8adcc0eef5ffc11762d85cae9f5ff8c2921 (patch) | |
tree | 3d2b5a37c18414714f68e721b52ca393dd7e75a9 /pyload/plugin/OCR.py | |
parent | [README] Update (2) (diff) | |
parent | added: configdata of deleted or outdated plugins are deletedfrom config (diff) | |
download | pyload-c12cb8adcc0eef5ffc11762d85cae9f5ff8c2921.tar.xz |
Merge pull request #2 from ardi69/0.4.10
makes the plugins runable
Diffstat (limited to 'pyload/plugin/OCR.py')
-rw-r--r-- | pyload/plugin/OCR.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/plugin/OCR.py b/pyload/plugin/OCR.py index 109dd1843..01ba6d534 100644 --- a/pyload/plugin/OCR.py +++ b/pyload/plugin/OCR.py @@ -60,11 +60,11 @@ class OCR(Base): def run_tesser(self, subset=False, digits=True, lowercase=True, uppercase=True): #tmpTif = tempfile.NamedTemporaryFile(suffix=".tif") try: - tmpTif = open(fs_join("tmp", "tmpTif_%s.tif" % self.__name), "wb") + tmpTif = open(fs_join("tmp", "tmpTif_%s.tif" % self.__class__.__name__), "wb") tmpTif.close() #tmpTxt = tempfile.NamedTemporaryFile(suffix=".txt") - tmpTxt = open(fs_join("tmp", "tmpTxt_%s.txt" % self.__name), "wb") + tmpTxt = open(fs_join("tmp", "tmpTxt_%s.txt" % self.__class__.__name__), "wb") tmpTxt.close() except IOError, e: @@ -83,7 +83,7 @@ class OCR(Base): if subset and (digits or lowercase or uppercase): #tmpSub = tempfile.NamedTemporaryFile(suffix=".subset") - with open(fs_join("tmp", "tmpSub_%s.subset" % self.__name), "wb") as tmpSub: + with open(fs_join("tmp", "tmpSub_%s.subset" % self.__class__.__name__), "wb") as tmpSub: tmpSub.write("tessedit_char_whitelist ") if digits: |