Professional Documents
Culture Documents
Note that OpenCV reads images in BGR format. It needs to be converted into RGB format, then you
convert it to GrayScale. Matplotlib is a widely used data visualization library in python.
Start by typing colab notebook in google. Then click on
Welcome To Colaboratory - Colaboratory
OpenCV uses BGR (Blue, green,red) format. So when we open an image in cv2 it is BGR by default. We
need to convert it into RGB, and then gray format. Give a new name to the image after every
conversion.