读取图片 import cv2 img = cv2.imread('image_path') 显示图片 import cv2 img = cv2.imread('image_path') cv2.imshow('name',img) cv2.waitKey