image = imread('test.jpg') image.shape #切分通道 (R, G, B) = cv2.split(image) #合并通道 merged = cv2.merge([R,G,B]) show(merged)