From 9dcb55174a2759266704364aaa48f3bcda065de8 Mon Sep 17 00:00:00 2001 From: kingzero Date: Tue, 16 Jun 2009 17:13:21 +0200 Subject: added captcha support for gigasize.com, see #6 --- captcha/gigasize-com.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 captcha/gigasize-com.py (limited to 'captcha/gigasize-com.py') diff --git a/captcha/gigasize-com.py b/captcha/gigasize-com.py new file mode 100644 index 000000000..b48e20da4 --- /dev/null +++ b/captcha/gigasize-com.py @@ -0,0 +1,14 @@ +from captcha import Ocr + +class Gigasize(Ocr): + def __init__(self, image): + Ocr.__init__(self, image) + + def get_captcha(self): + self.threshold(2.8) + self.run_gocr() + return self.result_captcha + +if __name__ == '__main__': + ocr = Gigasize('gigasize-com/7.jpg') + print ocr.get_captcha() -- cgit v1.2.3