import cv2 as cv import matplotlib.pyplot as plt # 读取图片 img = cv.imread("1.png")if img isNone:print("错误:无法读取图片文件 '1.png'")exit