Computer Vision, Image Processing, Computer Science, Colors, Engineering.
function cv.cvtColor(input_image, flag) where flag determines the type of conversion. For BGR → RGB conversion, we use the flag cv2.COLOR_BGR2RGB. im_RGB = cv2.cvtColor(im, cv2.COLOR_BGR2RGB) # convert BGR → RGB plt.imshow(im_RGB) plt.show() Now that we have the RGB image, let us decompose the