摘要:
# 计算两个图像的汉明距离 def hamming(hash1, hash2, n=10): b = False assert len(hash1) == len(hash2) if sum(ch1 != ch2 for ch1, ch2 in zip(hash1, hash2)) < n: b = 阅读全文
posted @ 2023-04-09 16:11
十二点零一分十一秒
阅读(51)
评论(0)
推荐(0)
摘要:
from PIL import Image # 获得图像的hash值 def get_hash(img): img = img.resize((16, 16), Image.Resampling.LANCZOS).convert('L') # 抗锯齿 灰度 # img.show() avg = su 阅读全文
posted @ 2023-04-09 15:43
十二点零一分十一秒
阅读(181)
评论(0)
推荐(0)
摘要:
import win32conimport win32api, win32gui,win32ui #cx: 想点击位置的第一个位置,例如要点击句柄内(200,300)位置,就输入200 #cy:想点击位置的二个位置,例如要点击句柄内(200,300)位置,就输入300 #hwnd:输入句柄id #t 阅读全文
posted @ 2023-04-09 15:30
十二点零一分十一秒
阅读(1121)
评论(0)
推荐(0)
摘要:
import timeimport win32gui,win32ui,win32conimport numpy as npimport cv2from PIL import ImageGrab, Imageimport ctypes def window_capture(hwnd,xSrc, ySr 阅读全文
posted @ 2023-04-09 00:05
十二点零一分十一秒
阅读(1176)
评论(0)
推荐(0)

浙公网安备 33010602011771号