summaryrefslogtreecommitdiffstats
path: root/module/plugins/OCR.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-19 02:23:19 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-19 02:23:19 +0200
commit0aca8ebfb15237e60effce06ccff2085516117f6 (patch)
treee3f28471f4f682f333d5f1b0725ec6572b9cb1bc /module/plugins/OCR.py
parentMove test stuff to common directory (diff)
downloadpyload-0aca8ebfb15237e60effce06ccff2085516117f6.tar.xz
Remove self-tests from all files
Diffstat (limited to 'module/plugins/OCR.py')
-rw-r--r--module/plugins/OCR.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/module/plugins/OCR.py b/module/plugins/OCR.py
index 919739ad6..eb4456fc0 100644
--- a/module/plugins/OCR.py
+++ b/module/plugins/OCR.py
@@ -305,14 +305,3 @@ class OCR(object):
return result
else:
self.result_captcha = result
-
-
-if __name__ == '__main__':
- ocr = OCR()
- ocr.load_image("B.jpg")
- ocr.to_greyscale()
- ocr.eval_black_white(140)
- ocr.derotate_by_average()
- ocr.run_tesser()
- print "Tesseract", ocr.result_captcha
- ocr.image.save("derotated.jpg")