import numpy as np import cv2 # 导入一张图像模式为彩色图片 img = cv2.imread('cat.jpg', cv2.IMREAD_COLOR) # 读入灰度图 cv2.imwrite('cat2.png', img).
確定! 回上一頁