summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/OCR.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-17 18:29:50 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-24 22:42:29 +0200
commit164512b6a74c94a731fcee7435dce1ccfa2f71e7 (patch)
tree3f61d3b83f641070145b478f54522c4fe2e63691 /module/plugins/internal/OCR.py
parentSpare fixes (diff)
downloadpyload-164512b6a74c94a731fcee7435dce1ccfa2f71e7.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/internal/OCR.py')
-rw-r--r--module/plugins/internal/OCR.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/module/plugins/internal/OCR.py b/module/plugins/internal/OCR.py
index 2d41ab39e..5fe6f2532 100644
--- a/module/plugins/internal/OCR.py
+++ b/module/plugins/internal/OCR.py
@@ -38,7 +38,9 @@ class OCR(Plugin):
def deactivate(self):
- """Delete all tmp images"""
+ """
+ Delete all tmp images
+ """
pass
@@ -47,8 +49,9 @@ class OCR(Plugin):
def run(self, command):
- """Run a command"""
-
+ """
+ Run a command
+ """
popen = subprocess.Popen(command, bufsize=-1, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
popen.wait()
output = popen.stdout.read() + " | " + popen.stderr.read()
@@ -189,8 +192,9 @@ class OCR(Plugin):
def derotate_by_average(self):
- """Rotate by checking each angle and guess most suitable"""
-
+ """
+ Rotate by checking each angle and guess most suitable
+ """
w, h = self.image.size
pixels = self.pixels