MCPcopy
hub / github.com/pyload/pyload / recognize

Method recognize

module/plugins/captcha/NetloadIn.py:16–26  ·  view source on GitHub ↗
(self, image)

Source from the content-addressed store, hash-verified

14 __authors__ = [("pyLoad Team", "admin@pyload.org")]
15
16 def recognize(self, image):
17 self.load_image(image)
18 self.to_greyscale()
19 self.clean(3)
20 self.clean(3)
21 self.run_tesser(True, True, False, False)
22
23 self.result_captcha = self.result_captcha.replace(
24 " ", "")[:4] # cut to 4 numbers
25
26 return self.result_captcha

Callers

nothing calls this directly

Calls 5

to_greyscaleMethod · 0.80
run_tesserMethod · 0.80
load_imageMethod · 0.45
cleanMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected