清理未使用导入和局部变量
This commit is contained in:
@@ -103,9 +103,7 @@ def restore_geetest_image(input_path: str, output_path: str) -> None:
|
||||
# 打开混淆图像
|
||||
img = Image.open(input_path)
|
||||
new_img = Image.new("RGB", (260, 160))
|
||||
r = 160
|
||||
for _ in range(len(Ut)):
|
||||
a = r / 2
|
||||
c = Ut[_] % 26 * 12 + 1
|
||||
u = 80 if Ut[_] > 25 else 0
|
||||
l = img.crop(box=(c, u, c + 10, u + 80))
|
||||
|
||||
Reference in New Issue
Block a user