This commit is contained in:
criseLYJ
2019-03-07 01:59:24 +08:00
+3 -3
View File
@@ -112,8 +112,8 @@ class BiliBili():
:param y: 像素点的y坐标
:return: 像素是否相同
"""
pixel1 = img1.load()[x-1, y]
pixel2 = img2.load()[x-1, y]
pixel1 = img1.load()[x, y]
pixel2 = img2.load()[x, y]
threshold = 100
if abs(pixel1[0] - pixel2[0]) < threshold and abs(pixel1[1] - pixel2[1]) < threshold and abs(
pixel1[2] - pixel2[2]) < threshold:
@@ -215,4 +215,4 @@ if __name__ == '__main__':
PASSOWRD = input('请输入您的密码:')
test = BiliBili(ACCOUNT, PASSOWRD) # 输入账号和密码
test.crack()
test.crack()