diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-06-17 23:18:27 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-06-17 23:18:27 +0200 |
commit | c5234a8b3d223f9860de161894ae8a4623e1ae05 (patch) | |
tree | d98aa17e3c0e738940e8957b390cd32e4b0955ee /captcha/GigasizeCom.py | |
parent | added a error message if gui cant connect to server (diff) | |
download | pyload-c5234a8b3d223f9860de161894ae8a4623e1ae05.tar.xz |
plugins can import captcha method, see #6
Diffstat (limited to 'captcha/GigasizeCom.py')
-rw-r--r-- | captcha/GigasizeCom.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/captcha/GigasizeCom.py b/captcha/GigasizeCom.py new file mode 100644 index 000000000..136092181 --- /dev/null +++ b/captcha/GigasizeCom.py @@ -0,0 +1,15 @@ +from captcha import OCR + +class GigasizeCom(OCR): + def __init__(self): + OCR.__init__(self) + + def get_captcha(self, image): + self.load_image(image) + self.threshold(2.8) + self.run_gocr() + return self.result_captcha + +if __name__ == '__main__': + ocr = GigasizeCom() + print ocr.get_captcha('gigasize-com/7.jpg') |