From b849139d38d9cebd367879d9a3323dfde733e866 Mon Sep 17 00:00:00 2001 From: Sleeper Date: Mon, 12 Apr 2010 21:51:44 +0200 Subject: fix netload and shareonline, captcha subsets for better recognition --- module/plugins/captcha/ShareonlineBiz.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'module/plugins/captcha/ShareonlineBiz.py') 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% -- cgit v1.2.3