I use opencv3 of python installed it by anaconda using:
conda install -c menpo opencv3=3.2.0
But when i use it to convert a picture to grayscale, like:
import cv2
import matplotlib.pyplot as plt
%matplotlib inline
image = cv2.imread('opencv_logo.png')
image1 = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY)
print (image.shape)
print (image1.shape)
plt.imshow(image1)
I donnot know why:
I use windows + miniconda.
Can anyone know why and help me ? Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…