diff options
author | Sleeper <devnull@localhost> | 2010-04-12 21:51:44 +0200 |
---|---|---|
committer | Sleeper <devnull@localhost> | 2010-04-12 21:51:44 +0200 |
commit | b849139d38d9cebd367879d9a3323dfde733e866 (patch) | |
tree | 5c3e609bb343e92a421cfc5725ca1df0f55401b3 /module/plugins/captcha/ShareonlineBiz.py | |
parent | set_conf fix (diff) | |
download | pyload-b849139d38d9cebd367879d9a3323dfde733e866.tar.xz |
fix netload and shareonline, captcha subsets for better recognition
Diffstat (limited to 'module/plugins/captcha/ShareonlineBiz.py')
-rw-r--r-- | module/plugins/captcha/ShareonlineBiz.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/module/plugins/captcha/ShareonlineBiz.py b/module/plugins/captcha/ShareonlineBiz.py index 91124f181..7bd5d7960 100644 --- a/module/plugins/captcha/ShareonlineBiz.py +++ b/module/plugins/captcha/ShareonlineBiz.py @@ -37,19 +37,9 @@ class ShareonlineBiz(OCR): final = "" for letter in letters: self.image = letter - self.run_tesser() + self.run_tesser(True, True, False, False) final += self.result_captcha - #replace common errors - final = self.correct({ - "A": "4", - "‘5": "3", - ("‘1", "T"): "7", - ("‘L", "B", "'L"): "2", - "b": "6", - ("I", "X"): "1" - }, final) - return final #tesseract at 60% |