安装过程略
图像识别
from paddleocr import PaddleOCR
from PIL import Image, ImageOps
thrd1, thrd2, cnt1mx, cnt2mx = 150, 245, 5, 4
img = Image.open(r"./VCode/1.jpg").convert('L')
img = ImageOps.invert(img.point(lambda p: p < thrd1 and 255))
width, height = img.size
px = img.load()
px = img.load()