summaryrefslogtreecommitdiffstats
path: root/module/plugins/captcha/ShareonlineBiz.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-18 06:05:51 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-27 22:37:05 +0100
commit76c302608bcad1c77a992666ee3867aa408c7e78 (patch)
treeb1278cbac68cacdf136d8dd4e0182451e2c469db /module/plugins/captcha/ShareonlineBiz.py
parentDon't use PERIODICAL_INTERVAL (diff)
downloadpyload-76c302608bcad1c77a992666ee3867aa408c7e78.tar.xz
[OCR] self.image -> self.img
Diffstat (limited to 'module/plugins/captcha/ShareonlineBiz.py')
-rw-r--r--module/plugins/captcha/ShareonlineBiz.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/captcha/ShareonlineBiz.py b/module/plugins/captcha/ShareonlineBiz.py
index 3e04bdcad..126d022ee 100644
--- a/module/plugins/captcha/ShareonlineBiz.py
+++ b/module/plugins/captcha/ShareonlineBiz.py
@@ -18,8 +18,8 @@ class ShareonlineBiz(OCR):
def recognize(self, image):
self.load_image(image)
self.to_greyscale()
- self.image = self.image.resize((160, 50))
- self.pixels = self.image.load()
+ self.img = self.img.resize((160, 50))
+ self.pixels = self.img.load()
self.threshold(1.85)
# self.eval_black_white(240)
# self.derotate_by_average()
@@ -28,7 +28,7 @@ class ShareonlineBiz(OCR):
final = ""
for letter in letters:
- self.image = letter
+ self.img = letter
self.run_tesser(True, True, False, False)
final += self.result_captcha