summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/OCR.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-27 10:28:30 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-27 10:28:30 +0200
commitf83389333ec10376452aa5f6d5ccd3963c6bafa1 (patch)
treeb63519f3bfcd73b728a27f91c7d786867ea1a917 /module/plugins/internal/OCR.py
parentDon't user dictionary’s iterator methods (diff)
downloadpyload-f83389333ec10376452aa5f6d5ccd3963c6bafa1.tar.xz
Update internal plugins
Diffstat (limited to 'module/plugins/internal/OCR.py')
-rw-r--r--module/plugins/internal/OCR.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/module/plugins/internal/OCR.py b/module/plugins/internal/OCR.py
index 9896837b5..37a33206f 100644
--- a/module/plugins/internal/OCR.py
+++ b/module/plugins/internal/OCR.py
@@ -21,7 +21,7 @@ from module.utils import save_join as fs_join
class OCR(Plugin):
__name__ = "OCR"
__type__ = "ocr"
- __version__ = "0.13"
+ __version__ = "0.14"
__status__ = "testing"
__description__ = """OCR base plugin"""
@@ -31,7 +31,9 @@ class OCR(Plugin):
def __init__(self, plugin):
self.pyload = plugin.pyload
+ self.plugin = plugin
self.info = {} #: Provide information in dict here
+
self.init()
@@ -42,6 +44,10 @@ class OCR(Plugin):
pass
+ def _log(self, level, args):
+ return self.plugin._log(level, (self.__name__,) + args)
+
+
def load_image(self, image):
self.image = Image.open(image)
self.pixels = self.image.load()