I am a beginner in python and would like to know how to remove components (red, blue or green) from an image using python, I downloaded some image processing libraries (like opencv). I would like to know if there is any function that does this in python or if it does not exist, could you inform me what the process would be to do this? Knowing the process I can create the algorithm in the "hand".
OBS: if possible, avoid responses based only on external links, that is, do not leave as a response only the link to an external page.
OBS2: I have nothing "ready", I'm just reading the image using opencv.
import cv2
imagem = cv2.imread("../Imagens/im01.jpg");