pip install opencv-python import cv2 import numpy as np 读取与保存 imread读取之后的东西都是用np数组保存的,反之也是。保存的形式是[H*W*(BGR)] >>> img = cv2.imread("./test.png") >>>