当我在pycharm上使用matplotlib而不使用'cycler'时,它显示了上述类型的错误。你能帮忙吗?谢谢!
import cv2 as cv
import numpy as np
from matplotlib import pyplot as plt
img = cv.imread('lena.jpg',-1)
cv.imshow('image',img)
img =cv.cvtColor(img, cv.COLOR_BGR2RGB)
plt.imshow(img)
plt.show(0)
cv.waitKey(0)
cv.destroyAllWindows()
答案 0 :(得分:0)