注意cv2.cvtColor(img,cv.COLOR_BGR2GRAY)通道 cv2.imread("test.jpg", 0)单通道模式读 cv2.imread("test.jpg", 1)其他通道模式读 注意图像是否是灰度图像。