import cv2 as cv # 读取图片 image_path = "./bird.jpg" img = cv.imread(image_path) # 检查图片是否成功读取 if img is None: print("错误:无法加载图像,请检查路