From f83389333ec10376452aa5f6d5ccd3963c6bafa1 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 27 Jul 2015 10:28:30 +0200 Subject: Update internal plugins --- module/plugins/internal/OCR.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'module/plugins/internal/OCR.py') 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() -- cgit v1.2.3