diff options
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/OCR.py | 11 | ||||
-rw-r--r-- | module/plugins/PluginManager.py | 19 |
2 files changed, 0 insertions, 30 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") diff --git a/module/plugins/PluginManager.py b/module/plugins/PluginManager.py index 4aa5ad575..1e1656ce8 100644 --- a/module/plugins/PluginManager.py +++ b/module/plugins/PluginManager.py @@ -369,22 +369,3 @@ class PluginManager: def reloadPlugin(self, type_plugin): """ reload and reindex ONE plugin """ return True if self.reloadPlugins(type_plugin) else False - - - -if __name__ == "__main__": - _ = lambda x: x - pypath = "/home/christian/Projekte/pyload-0.4/module/plugins" - - from time import time - - p = PluginManager(None) - - a = time() - - test = ["http://www.youtube.com/watch?v=%s" % x for x in xrange(0, 100)] - print p.parseUrls(test) - - b = time() - - print b - a, "s" |