summaryrefslogtreecommitdiffstats
path: root/captcha/gigasize-com.py
diff options
context:
space:
mode:
authorGravatar kingzero <devnull@localhost> 2009-06-16 17:13:21 +0200
committerGravatar kingzero <devnull@localhost> 2009-06-16 17:13:21 +0200
commit9dcb55174a2759266704364aaa48f3bcda065de8 (patch)
tree1f5e2509a3655795043950cff88633784bd21d71 /captcha/gigasize-com.py
parentnew file list class (diff)
downloadpyload-9dcb55174a2759266704364aaa48f3bcda065de8.tar.xz
added captcha support for gigasize.com, see #6
Diffstat (limited to 'captcha/gigasize-com.py')
-rw-r--r--captcha/gigasize-com.py14
1 files changed, 14 insertions, 0 deletions
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()