MCPcopy Create free account
hub / github.com/KingFuRong/pythonSpider / split_captcha

Function split_captcha

AutoSign/laowang.py:23–29  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

21
22
23def split_captcha(response):
24 image = Image.open(BytesIO(response.content))
25
26 bg_image = image.crop((0, 0, 240, 150))
27 bg_image.save('./bg.png')
28 slide_image = image.crop((0, 150, 240, 300))
29 slide_image.save('./slide.png')
30
31
32def cut_slide(image_path):

Callers 1

pass_captchaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected