I'm just starting with OpenCV and Python. I've installed it and started to use with a simply script. I want load an image in color and the same image in B/W. This is the simply code:
import cv2
import numpy as np
from matplotlib import pyplot as plt
img1 = cv2.imread("tiger.jpg",3)
img2 = cv2.imread("tiger.jpg",0)
plt.subplot(121),plt.imshow(img1),plt.title('TIGER_COLOR')
plt.subplot(122),plt.imshow(img2),plt.title('TIGER_BW')
plt.show()
Ok, this is the image I'm using with its real color: https://pixabay.com/en/tiger-cub-tiger-cub-big-cat-feline-165189/. The problem is, when I'm show the result of this code, I get this:
As you can see, both images have wrong color. I thought that it would be because I was using an open source graphical driver, but I installed the private one and the problem continues.
How can I fix this? What's the problem? Any ideas? Thanks!