From 48c0c42fd6faffc56432d5f037cd575979f180cc Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 14 Jul 2014 02:23:37 +0200 Subject: Removed all @author flags + key attributes cleanup for internal & hooks plugins --- module/plugins/captcha/ShareonlineBiz.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'module/plugins/captcha/ShareonlineBiz.py') diff --git a/module/plugins/captcha/ShareonlineBiz.py b/module/plugins/captcha/ShareonlineBiz.py index 0c87b636d..7b739c295 100644 --- a/module/plugins/captcha/ShareonlineBiz.py +++ b/module/plugins/captcha/ShareonlineBiz.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- - # #Copyright (C) 2009 kingzero, RaNaN # @@ -17,10 +16,19 @@ # along with this program; if not, see . # ### -from captcha import OCR + +from module.plugins.OCR import OCR + class ShareonlineBiz(OCR): __name__ = "ShareonlineBiz" + __version__ = "0.1" + __type__ = "ocr" + + __description__ = """Shareonline.biz ocr plugin""" + __author_name__ = "RaNaN" + __author_mail__ = "RaNaN@pyload.org" + def __init__(self): OCR.__init__(self) @@ -46,8 +54,10 @@ class ShareonlineBiz(OCR): #tesseract at 60% + if __name__ == '__main__': import urllib + ocr = ShareonlineBiz() urllib.urlretrieve("http://www.share-online.biz/captcha.php", "captcha.jpeg") - print ocr.get_captcha('captcha.jpeg') + print ocr.get_captcha('captcha.jpeg') -- cgit v1.2.3