import cv2
import numpy as np

img = cv2.imread('my.jpg')
cv2.imshow('orignal', img)
cv2.waitKey(0)

B,G,R = cv2.split(img)
zeros = np.zeros(img.shape[:2] , dtype="uint8")

cv2.imshow('RED',cv2.merge([zeros,zeros,R]))
cv2.waitKey(0)

cv2.imshow('GREEN',cv2.merge([zeros,G,zeros]))
cv2.waitKey(0)

cv2.imshow('BLUE',cv2.merge([B,zeros,zeros]))
cv2.waitKey(0)
cv2.destroyAllWindows()
6cd9852879c4d3ebf8a6591ce0ec06df66799ecc
<mask token>

<mask token>
cv2.imshow('orignal', img)
cv2.waitKey(0)
<mask token>
cv2.imshow('RED', cv2.merge([zeros, zeros, R]))
cv2.waitKey(0)
cv2.imshow('GREEN', cv2.merge([zeros, G, zeros]))
cv2.waitKey(0)
cv2.imshow('BLUE', cv2.merge([B, zeros, zeros]))
cv2.waitKey(0)
cv2.destroyAllWindows()

<mask token>
img = cv2.imread('my.jpg')
cv2.imshow('orignal', img)
cv2.waitKey(0)
B, G, R = cv2.split(img)
zeros = np.zeros(img.shape[:2], dtype='uint8')
cv2.imshow('RED', cv2.merge([zeros, zeros, R]))
cv2.waitKey(0)
cv2.imshow('GREEN', cv2.merge([zeros, G, zeros]))
cv2.waitKey(0)
cv2.imshow('BLUE', cv2.merge([B, zeros, zeros]))
cv2.waitKey(0)
cv2.destroyAllWindows()

import cv2
import numpy as np
img = cv2.imread('my.jpg')
cv2.imshow('orignal', img)
cv2.waitKey(0)
B, G, R = cv2.split(img)
zeros = np.zeros(img.shape[:2], dtype='uint8')
cv2.imshow('RED', cv2.merge([zeros, zeros, R]))
cv2.waitKey(0)
cv2.imshow('GREEN', cv2.merge([zeros, G, zeros]))
cv2.waitKey(0)
cv2.imshow('BLUE', cv2.merge([B, zeros, zeros]))
cv2.waitKey(0)
cv2.destroyAllWindows()

import cv2
import numpy as np

img = cv2.imread('my.jpg')
cv2.imshow('orignal', img)
cv2.waitKey(0)

B,G,R = cv2.split(img)
zeros = np.zeros(img.shape[:2] , dtype="uint8")

cv2.imshow('RED',cv2.merge([zeros,zeros,R]))
cv2.waitKey(0)

cv2.imshow('GREEN',cv2.merge([zeros,G,zeros]))
cv2.waitKey(0)

cv2.imshow('BLUE',cv2.merge([B,zeros,zeros]))
cv2.waitKey(0)
cv2.destroyAllWindows()