Having a problem in my code regarding openCv video

I used the same image which sir used in the video to explain openCv. However, I am obtaining a different color of image. I mean, the color of the image is brown, but I am getting blue color image.

Here is my code - https://ide.codingblocks.com/s/238300

Please tell why am I facing a problem.

Hey @abhaygarg2001, please see the video once again. It’s clearly mentioned that the image by default is read using opencv in BGR format. To read it in RGB format you need to convert the image using cv2.cvtcolor(img, cv2.COLOR_BGR2RGB)

Hope this helps !
Happy Learning :slight_smile: