summaryrefslogtreecommitdiffstats
path: root/module/plugins/captcha/ShareonlineBiz.py
diff options
context:
space:
mode:
authorGravatar Sleeper <devnull@localhost> 2010-04-12 21:51:44 +0200
committerGravatar Sleeper <devnull@localhost> 2010-04-12 21:51:44 +0200
commitb849139d38d9cebd367879d9a3323dfde733e866 (patch)
tree5c3e609bb343e92a421cfc5725ca1df0f55401b3 /module/plugins/captcha/ShareonlineBiz.py
parentset_conf fix (diff)
downloadpyload-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.py12
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%