-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathcaptcha3.py
More file actions
23 lines (20 loc) · 784 Bytes
/
captcha3.py
File metadata and controls
23 lines (20 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import cv2
from chaojiying import Chaojiying
# USERNAME = 'Germey'
# PASSWORD = ''
# SOFT_ID = ''
# CAPTCHA_KIND = '9004'
# FILE_NAME = 'captcha5.png'
# client = Chaojiying(USERNAME, PASSWORD, SOFT_ID)
# result = client.post_pic(open(FILE_NAME, 'rb').read(), CAPTCHA_KIND)
# print(result)
image = cv2.imread('captcha5.png')
image = cv2.circle(image, (433, 275), radius=10,
color=(0, 0, 255), thickness=-1)
# image = cv2.circle(image, (191, 540), radius=10,
# color=(0, 0, 255), thickness=-1)
# image = cv2.circle(image, (293, 440), radius=10,
# color=(0, 0, 255), thickness=-1)
# image = cv2.circle(image, (350, 511), radius=10,
# color=(0, 0, 255), thickness=-1)
cv2.imwrite('captcha5_label.png', image)