快速开始
配置
原生元素操作
Webview 操作
工具模块
所有模块
Format the result: 定义图像识别结果格式.
Check if the input images valid or not.
检查图像识别的输入.
Turn img_mat into gray_scale, so that template match can figure the img data. "print(type(im_search[0][0])") can check the pixel type.
Save the picture and compress
pil_img -- PIL image
path -- save path
quality -- the image quality, integer in range [1, 99]
max_size -- the maximum size of the picture, e.g 1200