1.读取两张图片 2.调整图片大小cv.resize (resize参考) 3.cv.bitwise_and或者cv.bitwise_or import cv2 as cv import numpy as np import os.path p1=../image/linux.png\np2='../image/win.png' #中文转换编码 def zh_ch(string): return string.encode(gbk).decode(errors=ignore) def read_image(path): img=cv.imread(path)